Skip to content

Commit 8851e79

Browse files
Jozsef Kadlecsikummakynes
authored andcommitted
netfilter: ipset: Fix sparse warnings
Signed-off-by: Jozsef Kadlecsik <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 522e89d commit 8851e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/ipset/ip_set_hash_ipportnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ hash_ipportnet6_uadt(struct ip_set *set, struct nlattr *tb[],
434434
if (unlikely(tb[IPSET_ATTR_IP_TO]))
435435
return -IPSET_ERR_HASH_RANGE_UNSUPPORTED;
436436
if (unlikely(tb[IPSET_ATTR_CIDR])) {
437-
u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]);
437+
cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]);
438438

439439
if (cidr != HOST_MASK)
440440
return -IPSET_ERR_INVALID_CIDR;

0 commit comments

Comments
 (0)