diff options
author | 2018-07-19 21:20:09 +0800 | |
---|---|---|
committer | 2018-07-30 14:07:09 +0200 | |
commit | 33b78aaa4457ce5d531c6a06f461f8d402774cad (patch) | |
tree | df09b74fa5b83cb41ca2fdc3ca518e1c0ac222cc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | netfilter: nf_osf: add nf_osf_find() (diff) | |
download | wireguard-linux-33b78aaa4457ce5d531c6a06f461f8d402774cad.tar.xz wireguard-linux-33b78aaa4457ce5d531c6a06f461f8d402774cad.zip |
netfilter: use PTR_ERR_OR_ZERO()
Fix ptr_ret.cocci warnings:
net/netfilter/xt_connlimit.c:96:1-3: WARNING: PTR_ERR_OR_ZERO can be used
net/netfilter/nft_numgen.c:240: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
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions