From: YueHaibing Date: Tue, 7 Jan 2020 14:22:44 +0000 (+0800) Subject: io_uring: Remove unnecessary null check X-Git-Tag: v5.10.7~3355^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96fd84d83a778450ffae737d9efa546ac3983b1f;p=platform%2Fkernel%2Flinux-rpi.git io_uring: Remove unnecessary null check Null check kfree is redundant, so remove it. This is detected by coccinelle. Signed-off-by: YueHaibing Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index edf072b..00426b6 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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);