From: Aaron Conole Date: Mon, 10 Apr 2017 19:52:37 +0000 (-0400) Subject: ipset: remove unused function __ip_set_get_netlink X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db268d4dfdb9025eaf98ec88c99b38fbba172c43;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ipset: remove unused function __ip_set_get_netlink There are no in-tree callers. Signed-off-by: Aaron Conole Acked-by: Jozsef Kadlecsik Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c index cb120c3c040e..2b87d9fd3f72 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -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) {