From: Sergey Popovich Date: Sat, 15 Nov 2014 09:17:38 +0000 (+0200) Subject: netfilter: ipset: No need to make nomatch bitfield X-Git-Tag: pablo~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f4ad4a50dce22dd3981cb026b046c91a50c3952;p=ipset netfilter: ipset: No need to make nomatch bitfield We do not store cidr packed with no match, so there is no need to make nomatch bitfield. This simplifies mtype_data_reset_flags() a bit. Signed-off-by: Sergey Popovich Signed-off-by: Jozsef Kadlecsik --- diff --git a/kernel/net/netfilter/ipset/ip_set_hash_netportnet.c b/kernel/net/netfilter/ipset/ip_set_hash_netportnet.c index 2837ff9..aa95690 100644 --- a/kernel/net/netfilter/ipset/ip_set_hash_netportnet.c +++ b/kernel/net/netfilter/ipset/ip_set_hash_netportnet.c @@ -54,7 +54,7 @@ struct hash_netportnet4_elem { u16 ccmp; }; u16 padding; - u8 nomatch:1; + u8 nomatch; u8 proto; }; @@ -330,7 +330,7 @@ struct hash_netportnet6_elem { u16 ccmp; }; u16 padding; - u8 nomatch:1; + u8 nomatch; u8 proto; };