]> granicus.if.org Git - ipset/commitdiff
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>
Tue, 30 Apr 2013 16:40:43 +0000 (18:40 +0200)
net/netfilter/ipset/ip_set_hash_ipportnet.c:275:20:
warning: symbol 'cidr' shadows an earlier one

kernel/net/netfilter/ipset/ip_set_hash_ipportnet.c

index c6a525373be4e24bb4de1d056095c5edfe3919c2..fd193d6ab8a26d533e154e56723d464a04a391bf 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;