commit | 33b78aaa4457ce5d531c6a06f461f8d402774cad | [log] [tgz] |
---|---|---|
author | YueHaibing <yuehaibing@huawei.com> | Thu Jul 19 21:20:09 2018 +0800 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Mon Jul 30 14:07:09 2018 +0200 |
tree | df09b74fa5b83cb41ca2fdc3ca518e1c0ac222cc | |
parent | 51c23b47e6b8590ea7a6a6776ffb21810ece73bf [diff] |
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>