netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Li Zetao <lizetao1@huawei.com>
Cc: lars.povlsen@microchip.com, Steen.Hegelund@microchip.com,
	daniel.machon@microchip.com, UNGLinuxDriver@microchip.com,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, linux-arm-kernel@lists.infradead.org,
	netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: microchip: vcap api: Use ERR_CAST() in vcap_decode_rule()
Date: Wed, 2 Aug 2023 18:48:28 +0200	[thread overview]
Message-ID: <ZMqI3MOQQr80UFa+@kernel.org> (raw)
In-Reply-To: <20230802093156.975743-1-lizetao1@huawei.com>

On Wed, Aug 02, 2023 at 05:31:56PM +0800, Li Zetao wrote:
> There is a warning reported by coccinelle:
> 
> ./drivers/net/ethernet/microchip/vcap/vcap_api.c:2399:9-16: WARNING:
> ERR_CAST can be used with ri
> 
> Use ERR_CAST instead of ERR_PTR + PTR_ERR to simplify the
> conversion process.
> 
> Signed-off-by: Li Zetao <lizetao1@huawei.com>

Reviewed-by: Simon Horman <horms@kernel.org>


  reply	other threads:[~2023-08-02 16:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02  9:31 [PATCH net-next] net: microchip: vcap api: Use ERR_CAST() in vcap_decode_rule() Li Zetao
2023-08-02 16:48 ` Simon Horman [this message]
2023-08-04  8:10 ` patchwork-bot+netdevbpf

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=ZMqI3MOQQr80UFa+@kernel.org \
    --to=horms@kernel.org \
    --cc=Steen.Hegelund@microchip.com \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=daniel.machon@microchip.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=lars.povlsen@microchip.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lizetao1@huawei.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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;
as well as URLs for NNTP newsgroup(s).