io_uring: clean up io_try_cancel
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jun 2022 09:22:04 +0000 (10:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Jun 2022 17:31:22 +0000 (11:31 -0600)
commit1250d3574051a0f69406b5173586f162395bbeec
tree19f06ee687d881b12b08a9c065283c5dc82d547e
parenta843210c0eafcc40458cd1c5c92a92d392af17d1
io_uring: clean up io_try_cancel

Get rid of an unnecessary extra goto in io_try_cancel() and simplify the
function.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/48cf5417b43a8386c6c364dba1ad9b4c7382d158.1655371007.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/cancel.c