]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: ipset: Add hash: fix coccinelle warnings
authorFengguang Wu <fengguang.wu@intel.com>
Fri, 27 Dec 2013 10:13:03 +0000 (11:13 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 27 Dec 2013 10:13:54 +0000 (11:13 +0100)
commit5c1de8050fa0b24a488166cde67a0a56500460a4
treeb1279060144f7754ac1e1994eec5d1a583a0bd5b
parent589086b5f12488789a03e388d73d2f56068fa070
netfilter: ipset: Add hash: fix coccinelle warnings

net/netfilter/ipset/ip_set_hash_netnet.c:115:8-9: WARNING: return of 0/1 in function 'hash_netnet4_data_list' with return type bool
/c/kernel-tests/src/cocci/net/netfilter/ipset/ip_set_hash_netnet.c:338:8-9: WARNING: return of 0/1 in function 'hash_netnet6_data_list' with return type bool

Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: coccinelle/misc/boolreturn.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
kernel/net/netfilter/ipset/ip_set_hash_netnet.c