Skip to content

Commit 4d0f4a5

Browse files
ruy-zhangaxboe
authored andcommitted
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: Ruyi Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 6b23124 commit 4d0f4a5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

io_uring/timeout.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@ static int __io_timeout_prep(struct io_kiocb *req,
537537
if (data->ts.tv_sec < 0 || data->ts.tv_nsec < 0)
538538
return -EINVAL;
539539

540-
INIT_LIST_HEAD(&timeout->list);
541540
data->mode = io_translate_timeout_mode(flags);
542541
hrtimer_init(&data->timer, io_timeout_get_clock(data), data->mode);
543542

0 commit comments

Comments
 (0)