Skip to content

Commit 170b3bb

Browse files
Ye Binaxboe
authored andcommitted
io_uring: Delete useless variable ‘id’ in io_prep_async_work
Fix follow warning: fs/io_uring.c:1523:22: warning: variable ‘id’ set but not used [-Wunused-but-set-variable] struct io_identity *id; ^~ Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Ye Bin <yebin10@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 90df085 commit 170b3bb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/io_uring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,10 +1523,8 @@ static void io_prep_async_work(struct io_kiocb *req)
15231523
{
15241524
const struct io_op_def *def = &io_op_defs[req->opcode];
15251525
struct io_ring_ctx *ctx = req->ctx;
1526-
struct io_identity *id;
15271526

15281527
io_req_init_async(req);
1529-
id = req->work.identity;
15301528

15311529
if (req->flags & REQ_F_FORCE_ASYNC)
15321530
req->work.flags |= IO_WQ_WORK_CONCURRENT;

0 commit comments

Comments
 (0)