Skip to content

Commit

Permalink
netfilter: xt_CT: remove a compile warning
Browse files Browse the repository at this point in the history
If CONFIG_NF_CONNTRACK_TIMEOUT=n we have following warning :

  CC [M]  net/netfilter/xt_CT.o
net/netfilter/xt_CT.c: In function ‘xt_ct_tg_check_v1’:
net/netfilter/xt_CT.c:284: warning: label ‘err4’ defined but not used

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Apr 3, 2012
1 parent 5276e16 commit 44b52bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/netfilter/xt_CT.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ static int xt_ct_tg_check_v1(const struct xt_tgchk_param *par)
info->ct = ct;
return 0;

#ifdef CONFIG_NF_CONNTRACK_TIMEOUT
err4:
rcu_read_unlock();
#endif
err3:
nf_conntrack_free(ct);
err2:
Expand Down

0 comments on commit 44b52bc

Please sign in to comment.