Skip to content

Commit 211fea1

Browse files
Colin Ian Kingaxboe
authored andcommitted
io_uring: remove redundant variable pointer nxt and io_wq_assign_next call
An earlier commit "io_uring: remove @NXT from handlers" removed the setting of pointer nxt and now it is always null, hence the non-null check and call to io_wq_assign_next is redundant and can be removed. Addresses-Coverity: ("'Constant' variable guard") Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 48bdd84 commit 211fea1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/io_uring.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,14 +3509,11 @@ static void __io_sync_file_range(struct io_kiocb *req)
35093509
static void io_sync_file_range_finish(struct io_wq_work **workptr)
35103510
{
35113511
struct io_kiocb *req = container_of(*workptr, struct io_kiocb, work);
3512-
struct io_kiocb *nxt = NULL;
35133512

35143513
if (io_req_cancelled(req))
35153514
return;
35163515
__io_sync_file_range(req);
35173516
io_put_req(req); /* put submission ref */
3518-
if (nxt)
3519-
io_wq_assign_next(workptr, nxt);
35203517
}
35213518

35223519
static int io_sync_file_range(struct io_kiocb *req, bool force_nonblock)

0 commit comments

Comments
 (0)