diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-07-19 16:20:09 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-07-30 15:07:09 +0300 |
commit | 33b78aaa4457ce5d531c6a06f461f8d402774cad (patch) | |
tree | df09b74fa5b83cb41ca2fdc3ca518e1c0ac222cc /net/netfilter/Kconfig | |
parent | 51c23b47e6b8590ea7a6a6776ffb21810ece73bf (diff) | |
download | linux-33b78aaa4457ce5d531c6a06f461f8d402774cad.tar.xz |
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 'net/netfilter/Kconfig')
0 files changed, 0 insertions, 0 deletions