summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQingfang Deng <qingfang.deng@linux.dev>2026-04-10 08:49:49 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-13 01:20:45 +0300
commit105369d627b946f6a05f25e9c399167b1674d4bc (patch)
tree1d057f87135554d446033edd7e5cbedc72830330 /include
parentf05b619d0fb67d38565ad5d1a83c189984aaa0ac (diff)
downloadlinux-105369d627b946f6a05f25e9c399167b1674d4bc.tar.xz
pppox: remove sk_pppox() helper
The sk member can be directly accessed from struct pppox_sock without relying on type casting. Remove the sk_pppox() helper and update all call sites to use po->sk directly. Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev> Link: https://patch.msgid.link/20260410054954.114031-1-qingfang.deng@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/if_pppox.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h
index 8bbf676c2a85..636772693f9a 100644
--- a/include/linux/if_pppox.h
+++ b/include/linux/if_pppox.h
@@ -57,11 +57,6 @@ static inline struct pppox_sock *pppox_sk(struct sock *sk)
return (struct pppox_sock *)sk;
}
-static inline struct sock *sk_pppox(struct pppox_sock *po)
-{
- return (struct sock *)po;
-}
-
struct module;
struct pppox_proto {