io_uring: remove io_free_req_find_next()

There is only one one-liner user of io_free_req_find_next(). Inline it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Pavel Begunkov 2019-11-21 23:21:00 +03:00 committed by Jens Axboe
parent 9835d6fafb
commit 70cf9f3270

View File

@ -984,15 +984,10 @@ static void io_req_find_next(struct io_kiocb *req, struct io_kiocb **nxt)
}
}
static void io_free_req_find_next(struct io_kiocb *req, struct io_kiocb **nxt)
{
io_req_find_next(req, nxt);
__io_free_req(req);
}
static void io_free_req(struct io_kiocb *req)
{
io_free_req_find_next(req, NULL);
io_req_find_next(req, NULL);
__io_free_req(req);
}
/*