]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
netfilter: ipset: Sparse warning about shadowed variable fixed
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 30 Apr 2013 16:40:43 +0000 (18:40 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 30 Sep 2013 19:33:25 +0000 (21:33 +0200)
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>
net/netfilter/ipset/ip_set_hash_ipportnet.c

index f15f3e28b9c338c6e72d3aa949d9d241c0e7cabe..9a80d8bc9f1861383698e1f33e7d710b17d1740a 100644 (file)
@@ -272,7 +272,7 @@ hash_ipportnet4_uadt(struct ip_set *set, struct nlattr *tb[],
                if (ip > ip_to)
                        swap(ip, ip_to);
        } else if (tb[IPSET_ATTR_CIDR]) {
-               u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]);
+               cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]);
 
                if (!cidr || cidr > 32)
                        return -IPSET_ERR_INVALID_CIDR;