diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-04-30 12:40:43 -0400 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-09-30 15:33:25 -0400 |
commit | b3aabd149c201a7c2a5f9ee673376948ae0724d8 (patch) | |
tree | 4b6e1e8fee52f7ed0ad6ffe1791c35562b5e2bca | |
parent | 122ebbf24c33ac13a9243248c9b8da0fa4c012bd (diff) |
netfilter: ipset: Sparse warning about shadowed variable fixed
net/netfilter/ipset/ip_set_hash_ipportnet.c:275:20:
warning: symbol 'cidr' shadows an earlier one
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
-rw-r--r-- | net/netfilter/ipset/ip_set_hash_ipportnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_hash_ipportnet.c b/net/netfilter/ipset/ip_set_hash_ipportnet.c index f15f3e28b9c3..9a80d8bc9f18 100644 --- a/net/netfilter/ipset/ip_set_hash_ipportnet.c +++ b/net/netfilter/ipset/ip_set_hash_ipportnet.c | |||
@@ -272,7 +272,7 @@ hash_ipportnet4_uadt(struct ip_set *set, struct nlattr *tb[], | |||
272 | if (ip > ip_to) | 272 | if (ip > ip_to) |
273 | swap(ip, ip_to); | 273 | swap(ip, ip_to); |
274 | } else if (tb[IPSET_ATTR_CIDR]) { | 274 | } else if (tb[IPSET_ATTR_CIDR]) { |
275 | u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); | 275 | cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); |
276 | 276 | ||
277 | if (!cidr || cidr > 32) | 277 | if (!cidr || cidr > 32) |
278 | return -IPSET_ERR_INVALID_CIDR; | 278 | return -IPSET_ERR_INVALID_CIDR; |