OSDN Git Service

io_uring: remove extra checks in send/recv
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jul 2020 20:28:00 +0000 (23:28 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 19:00:45 +0000 (13:00 -0600)
commit6b754c8b912a164fbb15b7b839d51709c3d9ee6f
tree9974c4940f0f00bfee24f609848ee79a16827d4a
parent7a7cacba8b4560403615b04d57bdcd1f93f90f10
io_uring: remove extra checks in send/recv

With the return on a bad socket, kmsg is always non-null by the end
of the function, prune left extra checks and initialisations.

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