[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c05036b0-49c0-411c-6051-27dee4a0f2b4@kernel.dk>
Date: Wed, 22 Jul 2020 21:25:07 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Li Heng <liheng40@...wei.com>, viro@...iv.linux.org.uk
Cc: io-uring@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] io_uring: Remove redundant NULL check
On 7/22/20 9:19 PM, Li Heng wrote:
> Fix below warnings reported by coccicheck:
> ./fs/io_uring.c:1544:2-7: WARNING: NULL check before some freeing functions is not needed.
> ./fs/io_uring.c:3095:2-7: WARNING: NULL check before some freeing functions is not needed.
> ./fs/io_uring.c:3195:2-7: WARNING: NULL check before some freeing functions is not needed.
Not needed, but it's faster that way. See recent discussions on the
io-uring list. Hence they are very much on purpose, and it'd be great if
someone would ensure that kfree() was an inline that checks for non-NULL
before calling __kfree() or whatever the real function would then be.
--
Jens Axboe
Powered by blists - more mailing lists