diff options
author | 2018-05-23 18:53:48 +0800 | |
---|---|---|
committer | 2018-06-01 09:38:40 +0200 | |
commit | 7849958b51aa392e3592b6b8181db0baad979b0b (patch) | |
tree | 6de498f05144d2a1fc8a184026b83470c2bed600 /tools/perf/scripts/python | |
parent | netfilter: nf_tables: remove unused variables (diff) | |
download | wireguard-linux-7849958b51aa392e3592b6b8181db0baad979b0b.tar.xz wireguard-linux-7849958b51aa392e3592b6b8181db0baad979b0b.zip |
netfilter: fix ptr_ret.cocci warnings
net/netfilter/nft_numgen.c:117:1-3: WARNING: PTR_ERR_OR_ZERO can be used
net/netfilter/nft_hash.c:180:1-3: WARNING: PTR_ERR_OR_ZERO can be used
net/netfilter/nft_hash.c:223:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Fixes: b9ccc07e3f31 ("netfilter: nft_hash: add map lookups for hashing operations")
Fixes: d734a2888922 ("netfilter: nft_numgen: add map lookups for numgen statements")
CC: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions