]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Thu, 1 Oct 2020 02:32:34 +0000 (20:32 -0600)
commit0298165ed5048ac7839e8d1ded8be7bf5379c4d8
tree04b140e37dde26645d226f9b461ad286b42475e1
parent93a4b133084f604436be2e5bed93ef7b1f2745b3
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