mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
io_uring: Remove unnecessary null check
Null check kfree is redundant, so remove it. This is detected by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
fddafacee2
commit
96fd84d83a
@ -1160,8 +1160,7 @@ static void __io_req_aux_free(struct io_kiocb *req)
|
||||
{
|
||||
struct io_ring_ctx *ctx = req->ctx;
|
||||
|
||||
if (req->io)
|
||||
kfree(req->io);
|
||||
kfree(req->io);
|
||||
if (req->file) {
|
||||
if (req->flags & REQ_F_FIXED_FILE)
|
||||
percpu_ref_put(&ctx->file_data->refs);
|
||||
|
Loading…
Reference in New Issue
Block a user