]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: Remove unused inline function sk_nulls_node_init()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Thu, 22 Sep 2022 08:38:56 +0000 (16:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 18:48:14 +0000 (11:48 -0700)
All uses of sk_nulls_node_init() have
been removed since commit 64930a6d6546 ("ping: convert to RCU
lookups, get rid of rwlock"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h

index 96a31026e35df226f69c8404090824cca29d9811..08038a385ef21ee376b73fbb597ea0c9ce192e8c 100644 (file)
@@ -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);