2021-03-26 19:54:37

by Colin King

[permalink] [raw]
Subject: [PATCH] io_uring: remove unsued assignment to pointer io

From: Colin Ian King <[email protected]>

There is an assignment to io that is never read after the assignment,
the assignment is redundant and can be removed.

Signed-off-by: Colin Ian King <[email protected]>
---
fs/io_uring.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/io_uring.c b/fs/io_uring.c
index 046216c1b7d5..17a8adec47f0 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -4787,7 +4787,6 @@ static int io_connect(struct io_kiocb *req, unsigned int issue_flags)
ret = -ENOMEM;
goto out;
}
- io = req->async_data;
memcpy(req->async_data, &__io, sizeof(__io));
return -EAGAIN;
}
--
2.30.2


2021-03-26 23:09:30

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH] io_uring: remove unsued assignment to pointer io

On 3/26/21 1:52 PM, Colin King wrote:
> From: Colin Ian King <[email protected]>
>
> There is an assignment to io that is never read after the assignment,
> the assignment is redundant and can be removed.

Thanks, applied.

--
Jens Axboe