netfilter: remove unused refcount variable
Subsystems (3)
PATCH 1/1 netfilter: remove unused refcount variable
The refcount variable was accidentally introduced without any reference to it. Removing it again avoids this warning:
net/netfilter/nfnetlink_acct.c: In function 'nfnl_acct_try_del':net/netfilter/nfnetlink_acct.c:329:15: error: unused variable 'refcount' [-Werror=unused-variable]
Fixes b54ab92b84b6 ("netfilter: refcounter conversions")
Signed-off-by Arnd Bergmann <[email protected]>
--- net/netfilter/nfnetlink_acct.c | 1 - 1 file changed, 1 deletion(-)
net/netfilter/nfnetlink_acct.c +0 -1
@@ -326,7 +326,6 @@ static int nfnl_acct_get(struct net *net, struct sock *nfnl,static int nfnl_acct_try_del (struct nf_acct *cur) {int ret =0 ; -unsigned int refcount;/* We want to avoid races with nfnl_acct_put. So only when the current * refcnt is 1, we decrease it to 0.
Signature · 1 line
2.9.0
Pablo Neira Ayuso
maintainerQuoted 5 lines · Arnd Bergmann
The refcount variable was accidentally introduced without any reference to it. Removing it again avoids this warning:
net/netfilter/nfnetlink_acct.c: In function 'nfnl_acct_try_del':net/netfilter/nfnetlink_acct.c:329:15: error: unused variable 'refcount' [-Werror=unused-variable]
Thanks Arnd. Elena already fixed it here:
https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git/commit/