summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYe Bin <yebin10@huawei.com>2021-01-05 21:53:40 +0800
committerJens Axboe <axboe@kernel.dk>2021-01-05 11:34:23 -0700
commit170b3bbda08852277b97f4f0516df0785c939764 (patch)
treed63529cdce9dc626ec836626b1074284bf53be13 /fs
parent90df08538c07b7135703358a0c8c08d97889a704 (diff)
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/io_uring.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 5bccb235271f..dc92ca5090a3 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -1523,10 +1523,8 @@ static void io_prep_async_work(struct io_kiocb *req)
{
const struct io_op_def *def = &io_op_defs[req->opcode];
struct io_ring_ctx *ctx = req->ctx;
- struct io_identity *id;
io_req_init_async(req);
- id = req->work.identity;
if (req->flags & REQ_F_FORCE_ASYNC)
req->work.flags |= IO_WQ_WORK_CONCURRENT;