[PATCH 4/5] net: Remove unused inline function sk_nulls_node_init()
Gaosheng Cui
cuigaosheng1 at huawei.com
Wed Sep 21 02:04:54 PDT 2022
All uses of sk_nulls_node_init() have
been removed since commit dbca1596bbb0 ("ping: convert to RCU
lookups, get rid of rwlock"), so remove it.
Signed-off-by: Gaosheng Cui <cuigaosheng1 at huawei.com>
---
include/net/sock.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/net/sock.h b/include/net/sock.h
index 96a31026e35d..08038a385ef2 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -744,11 +744,6 @@ static inline void sk_node_init(struct hlist_node *node)
node->pprev = NULL;
}
-static inline void sk_nulls_node_init(struct hlist_nulls_node *node)
-{
- node->pprev = NULL;
-}
-
static inline void __sk_del_node(struct sock *sk)
{
__hlist_del(&sk->sk_node);
--
2.25.1
More information about the linux-arm-kernel
mailing list