Skip to content

Commit

Permalink
netfilter: fix the warning on unused refcount variable
Browse files Browse the repository at this point in the history
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: b54ab92 ("netfilter: refcounter conversions")
Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Reshetova, Elena authored and Pablo Neira Ayuso committed Mar 20, 2017
1 parent b54ab92 commit 4485a84
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/netfilter/nfnetlink_acct.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4485a84

Please sign in to comment.