Fixes gcc '-Wunused-but-set-variable' warning: fs/io_uring.c: In function io_ring_submit: fs/io_uring.c:2279:7: warning: variable ret set but not used [-Wunused-but-set-variable] It's not used since commit f3fafe4103bd ("io_uring: add support for sqe links") Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx> --- fs/io_uring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 8ef9d8d3c88b..e2bbd227ab2a 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2276,7 +2276,6 @@ static int io_ring_submit(struct io_ring_ctx *ctx, unsigned int to_submit) for (i = 0; i < to_submit; i++) { struct sqe_submit s; - int ret; if (!io_get_sqring(ctx, &s)) break; @@ -2292,7 +2291,7 @@ static int io_ring_submit(struct io_ring_ctx *ctx, unsigned int to_submit) s.needs_fixed_file = false; submit++; - ret = io_submit_sqe(ctx, &s, statep, &link); + io_submit_sqe(ctx, &s, statep, &link); } io_commit_sqring(ctx); -- 2.17.1