diff options
author | Reshetova, Elena <elena.reshetova@intel.com> | 2017-03-20 05:43:28 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-20 05:49:12 -0400 |
commit | 4485a841be171dbd8d3f0701b00f59d389e94ce6 (patch) | |
tree | 75d84f9d9ec8965b086a642bfbf413544c06f18b | |
parent | b54ab92b84b6161f91b1ad9160199422b3699009 (diff) |
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 <elena.reshetova@intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/nfnetlink_acct.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c index f44cbd35357f..c86da174a5fc 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, | |||
326 | static int nfnl_acct_try_del(struct nf_acct *cur) | 326 | static int nfnl_acct_try_del(struct nf_acct *cur) |
327 | { | 327 | { |
328 | int ret = 0; | 328 | int ret = 0; |
329 | unsigned int refcount; | ||
330 | 329 | ||
331 | /* We want to avoid races with nfnl_acct_put. So only when the current | 330 | /* We want to avoid races with nfnl_acct_put. So only when the current |
332 | * refcnt is 1, we decrease it to 0. | 331 | * refcnt is 1, we decrease it to 0. |