linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: cgel.zte@gmail.com
Cc: Jens Axboe <axboe@kernel.dk>,
	Changcheng Deng <deng.changcheng@zte.com.cn>,
	io-uring@vger.kernel.org, Zeal Robot <zealci@zte.com.cn>,
	asml.silence@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] io_uring: Use ERR_CAST() instead of ERR_PTR(PTR_ERR())
Date: Wed, 20 Oct 2021 08:02:46 -0600	[thread overview]
Message-ID: <163473856398.730876.13037999645192762534.b4-ty@kernel.dk> (raw)
In-Reply-To: <20211020084948.1038420-1-deng.changcheng@zte.com.cn>

On Wed, 20 Oct 2021 08:49:48 +0000, cgel.zte@gmail.com wrote:
> From: Changcheng Deng <deng.changcheng@zte.com.cn>
> 
> Use ERR_CAST() instead of ERR_PTR(PTR_ERR()).
> This makes it more readable and also fix this warning detected by
> err_cast.cocci:
> ./fs/io_uring.c: WARNING: 3208: 11-18: ERR_CAST can be used with buf
> 
> [...]

Applied, thanks!

[1/1] io_uring: Use ERR_CAST() instead of ERR_PTR(PTR_ERR())
      commit: 898df2447b9ee8d759e85d33087505d3905bf2f0

Best regards,
-- 
Jens Axboe



      parent reply	other threads:[~2021-10-20 14:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20  8:49 [PATCH] io_uring: Use ERR_CAST() instead of ERR_PTR(PTR_ERR()) cgel.zte
2021-10-20  8:54 ` Pavel Begunkov
2021-10-20 14:02 ` Jens Axboe [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=163473856398.730876.13037999645192762534.b4-ty@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=asml.silence@gmail.com \
    --cc=cgel.zte@gmail.com \
    --cc=deng.changcheng@zte.com.cn \
    --cc=io-uring@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zealci@zte.com.cn \
    /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).