From: Pablo Neira Ayuso <pablo@netfilter.org>
To: YueHaibing <yuehaibing@huawei.com>
Cc: kadlec@blackhole.kfki.hu, fw@strlen.de,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
davem@davemloft.net, netfilter-devel@vger.kernel.org,
coreteam@netfilter.org
Subject: Re: [PATCH] netfilter: use PTR_ERR_OR_ZERO()
Date: Mon, 30 Jul 2018 11:47:02 +0200 [thread overview]
Message-ID: <20180730094702.oiau2jolf3ps4cjb@salvia> (raw)
In-Reply-To: <20180719132009.19568-1-yuehaibing@huawei.com>
On Thu, Jul 19, 2018 at 09:20:09PM +0800, YueHaibing wrote:
> 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
Applied, thanks.
prev parent reply other threads:[~2018-07-30 9:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 13:20 [PATCH] netfilter: use PTR_ERR_OR_ZERO() YueHaibing
2018-07-30 9:47 ` Pablo Neira Ayuso [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180730094702.oiau2jolf3ps4cjb@salvia \
--to=pablo@netfilter.org \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=kadlec@blackhole.kfki.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=yuehaibing@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox