diff options
author | Ruyi Zhang <ruyi.zhang@samsung.com> | 2024-04-11 07:59:53 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-15 16:10:27 +0200 |
commit | 4d0f4a5413490391c6cd16407a0f71b51700a68a (patch) | |
tree | fb1d988d19630f3caecdd462dde15cae4b9d20a9 /io_uring | |
parent | io_uring: consolidate overflow flushing (diff) | |
download | linux-4d0f4a5413490391c6cd16407a0f71b51700a68a.tar.xz linux-4d0f4a5413490391c6cd16407a0f71b51700a68a.zip |
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 <ruyi.zhang@samsung.com>
Link: https://lore.kernel.org/r/20240411055953.2029218-1-ruyi.zhang@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/timeout.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/io_uring/timeout.c b/io_uring/timeout.c index 3458ca550b83..1c9bf07499b1 100644 --- a/io_uring/timeout.c +++ b/io_uring/timeout.c @@ -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); |