Skip to content
Commit 9e4bef2b authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: cleanup 'ret' handling in io_iopoll_check()



We return 0 for success, or -error when there's an error. Move the 'ret'
variable into the loop where we are actually using it, to make it
clearer that we don't carry this variable forward for return outside of
the loop.

While at it, also move the need_resched() break condition out of the
while check itself, keeping it with the signal pending check.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent dc314886
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment