]> git.baikalelectronics.ru Git - kernel.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>
Thu, 6 Mar 2014 08:31:42 +0000 (09:31 +0100)
commit6d7c6f798b04b70cacb8ce40223f41db4be5f612
tree94b81097af0e0af685c828048b9fe0975e9d551e
parentd22b67ecb72117c5fe174c978726526291dd5b4c
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>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_hash_netnet.c