io_uring: kill extra user_bufs check
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 5 Sep 2020 21:45:48 +0000 (00:45 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Sep 2020 14:13:31 +0000 (08:13 -0600)
commita60edf3afa896f6a344e21d8596866ddf6a162e4
treeeb5457227168c8d2bcb15faa700e5c07e883712f
parent91d043dd1b5480acb1b3e49035a1dbf360f55cef
io_uring: kill extra user_bufs check

Testing ctx->user_bufs for NULL in io_import_fixed() is not neccessary,
because in that case ctx->nr_user_bufs would be zero, and the following
check would fail.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c