ipset: remove unused function __ip_set_get_netlink
authorAaron Conole <aconole@bytheb.org>
Mon, 10 Apr 2017 19:52:37 +0000 (15:52 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 15 Apr 2017 08:24:41 +0000 (10:24 +0200)
There are no in-tree callers.

Signed-off-by: Aaron Conole <aconole@bytheb.org>
Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_core.c

index cb120c3c040ec480db2ee8df29218d5442a83cf3..2b87d9fd3f72d9c37a48410ccddfb2dd7b884f0e 100644 (file)
@@ -500,14 +500,6 @@ __ip_set_put(struct ip_set *set)
 /* set->ref can be swapped out by ip_set_swap, netlink events (like dump) need
  * a separate reference counter
  */
-static inline void
-__ip_set_get_netlink(struct ip_set *set)
-{
-       write_lock_bh(&ip_set_ref_lock);
-       set->ref_netlink++;
-       write_unlock_bh(&ip_set_ref_lock);
-}
-
 static inline void
 __ip_set_put_netlink(struct ip_set *set)
 {