Commit ea9cf2a55a7bb84ba862a0fc13044a4311c9bbfe
Committed by
Pablo Neira Ayuso
1 parent
4b87dd54be
netfilter: cttimeout: remove set but not used variable 'l3num'
Fixes gcc '-Wunused-but-set-variable' warning: net/netfilter/nfnetlink_cttimeout.c: In function 'cttimeout_default_set': net/netfilter/nfnetlink_cttimeout.c:353:8: warning: variable 'l3num' set but not used [-Wunused-but-set-variable] It not used any more after commit dd2934a95701 ("netfilter: conntrack: remove l3->l4 mapping information") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
net/netfilter/nfnetlink_cttimeout.c
... | ... | @@ -350,7 +350,6 @@ |
350 | 350 | struct netlink_ext_ack *extack) |
351 | 351 | { |
352 | 352 | const struct nf_conntrack_l4proto *l4proto; |
353 | - __u16 l3num; | |
354 | 353 | __u8 l4num; |
355 | 354 | int ret; |
356 | 355 | |
... | ... | @@ -359,7 +358,6 @@ |
359 | 358 | !cda[CTA_TIMEOUT_DATA]) |
360 | 359 | return -EINVAL; |
361 | 360 | |
362 | - l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); | |
363 | 361 | l4num = nla_get_u8(cda[CTA_TIMEOUT_L4PROTO]); |
364 | 362 | l4proto = nf_ct_l4proto_find_get(l4num); |
365 | 363 |