commit | 57cd657b8272a66277c139e7bbdc8b86057cb415 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Mon Feb 01 18:59:56 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Feb 01 13:09:21 2021 -0700 |
tree | a26e3482cf57f147c8d680beb5777392cfbb2f28 | |
parent | ce3d5aae331fa0eb1e88199e0380f517ed0c58f6 [diff] |
io_uring: simplify do_read return parsing do_read() returning 0 bytes read (not -EAGAIN/etc.) is not an important enough of a case to prioritise it. Fold it into ret < 0 check, so we get rid of an extra if and make it a bit more readable. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>