Commit 96fd84d8 authored by YueHaibing's avatar YueHaibing Committed by Jens Axboe
Browse files

io_uring: Remove unnecessary null check



Null check kfree is redundant, so remove it.
This is detected by coccinelle.

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent fddaface
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1160,7 +1160,6 @@ static void __io_req_aux_free(struct io_kiocb *req)
{
	struct io_ring_ctx *ctx = req->ctx;

	if (req->io)
	kfree(req->io);
	if (req->file) {
		if (req->flags & REQ_F_FIXED_FILE)