]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pppox: convert pppox_sk() to use container_of()
authorQingfang Deng <qingfang.deng@linux.dev>
Fri, 10 Apr 2026 05:49:50 +0000 (13:49 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 22:20:46 +0000 (15:20 -0700)
commit6bc78039a77a46d89df987813fbafe333cd81367
treed35239c36ca08fcbfe023bcd6fe11a34757b0fd6
parent105369d627b946f6a05f25e9c399167b1674d4bc
pppox: convert pppox_sk() to use container_of()

Use container_of() macro instead of direct pointer casting to get the
pppox_sock from a sock pointer.

Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Link: https://patch.msgid.link/20260410054954.114031-2-qingfang.deng@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/if_pppox.h