]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ppp: consolidate refcount decrements
authorQingfang Deng <qingfang.deng@linux.dev>
Tue, 7 Apr 2026 09:40:56 +0000 (17:40 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 03:03:48 +0000 (20:03 -0700)
commit5ecbebc9483c61280153ebdceda5f4db7ae63d18
tree0e821e9664621004236d9257d3ba69233afe1b5b
parent84c5a3f00084ffd741a4c3261a58dd10cd5aceaf
ppp: consolidate refcount decrements

ppp_destroy_{channel,interface} are always called after
refcount_dec_and_test().

To reduce boilerplate code, consolidate the decrements by moving them
into the two functions. To reflect this change in semantics, rename the
functions to ppp_release_*.

Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Link: https://patch.msgid.link/20260407094058.257246-1-qingfang.deng@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ppp/ppp_generic.c