netfilter: fix the warning on unused refcount variable
authorReshetova, Elena <elena.reshetova@intel.com>
Mon, 20 Mar 2017 09:43:28 +0000 (11:43 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 20 Mar 2017 09:49:12 +0000 (10:49 +0100)
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 <elena.reshetova@intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_acct.c

index f44cbd35357fd556ee4b6c24cfac0efd7fdbb504..c86da174a5fced4e3c67307925332273b9f858fe 100644 (file)
@@ -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.