]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: hash: fix boolreturn.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Sat, 15 Oct 2016 01:13:14 +0000 (09:13 +0800)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 Nov 2016 12:28:50 +0000 (13:28 +0100)
commit627271107070fdeb094f347c32516fee5e32b590
tree44633f0282a29a7e2d8d1cdca03a05c4d8112fad
parent7a1cf0ef93483443a302fc82e10109afc449569e
netfilter: ipset: hash: fix boolreturn.cocci warnings

net/netfilter/ipset/ip_set_hash_ipmac.c:70:8-9: WARNING: return of 0/1 in function 'hash_ipmac4_data_list' with return type bool
net/netfilter/ipset/ip_set_hash_ipmac.c:178:8-9: WARNING: return of 0/1 in function 'hash_ipmac6_data_list' with return type bool

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

CC: Tomasz Chilinski <tomasz.chilinski@chilan.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_hash_ipmac.c