Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4d0f4a54 authored by Ruyi Zhang's avatar Ruyi Zhang Committed by Jens Axboe
Browse files

io_uring/timeout: remove duplicate initialization of the io_timeout list.


In the __io_timeout_prep function, the io_timeout list is initialized
twice, removing the meaningless second initialization.

Signed-off-by: default avatarRuyi Zhang <ruyi.zhang@samsung.com>
Link: https://lore.kernel.org/r/20240411055953.2029218-1-ruyi.zhang@samsung.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6b231248
No related merge requests found
......@@ -537,7 +537,6 @@ static int __io_timeout_prep(struct io_kiocb *req,
if (data->ts.tv_sec < 0 || data->ts.tv_nsec < 0)
return -EINVAL;
INIT_LIST_HEAD(&timeout->list);
data->mode = io_translate_timeout_mode(flags);
hrtimer_init(&data->timer, io_timeout_get_clock(data), data->mode);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment