Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4485a841 authored by Reshetova, Elena's avatar Reshetova, Elena Committed by Pablo Neira Ayuso
Browse files

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: b54ab92b ("netfilter: refcounter conversions")
Signed-off-by: default avatarElena Reshetova <elena.reshetova@intel.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent b54ab92b
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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)
static int nfnl_acct_try_del(struct nf_acct *cur)
{
{
	int ret = 0;
	int ret = 0;
	unsigned int refcount;


	/* We want to avoid races with nfnl_acct_put. So only when the current
	/* We want to avoid races with nfnl_acct_put. So only when the current
	 * refcnt is 1, we decrease it to 0.
	 * refcnt is 1, we decrease it to 0.