[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3681f427-b661-b032-8e48-e598f208a15a@gmail.com>
Date: Wed, 20 Oct 2021 09:54:40 +0100
From: Pavel Begunkov <asml.silence@...il.com>
To: cgel.zte@...il.com, axboe@...nel.dk
Cc: io-uring@...r.kernel.org, linux-kernel@...r.kernel.org,
Changcheng Deng <deng.changcheng@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH] io_uring: Use ERR_CAST() instead of ERR_PTR(PTR_ERR())
On 10/20/21 09:49, cgel.zte@...il.com wrote:
> From: Changcheng Deng <deng.changcheng@....com.cn>
>
> Use ERR_CAST() instead of ERR_PTR(PTR_ERR()).
Makes more sense, looks good
> 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
>
--
Pavel Begunkov
Powered by blists - more mailing lists