From: Reshetova, Elena Date: Mon, 20 Mar 2017 09:43:28 +0000 (+0200) Subject: netfilter: fix the warning on unused refcount variable X-Git-Tag: v4.14-rc1~960^3~415^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4485a841be171dbd8d3f0701b00f59d389e94ce6;p=platform%2Fkernel%2Flinux-rpi.git netfilter: fix the warning on unused refcount variable net/netfilter/nfnetlink_acct.c: In function 'nfnl_acct_try_del': net/netfilter/nfnetlink_acct.c:329:15: warning: unused variable 'refcount' [-Wunused-variable] unsigned int refcount; ^ Fixes: b54ab92b84b6 ("netfilter: refcounter conversions") Signed-off-by: Elena Reshetova Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c index f44cbd3..c86da17 100644 --- a/net/netfilter/nfnetlink_acct.c +++ b/net/netfilter/nfnetlink_acct.c @@ -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.