Commit 9f3a2cb
io_uring: kill extra checks in io_write()
We don't retry short writes and so we would never get to async setup in
io_write() in that case. Thus ret2 > 0 is always false and
iov_iter_advance() is never used. Apparently, the same is found by
Coverity, which complains on the code.
Fixes: cd65869 ("io_uring: use iov_iter state save/restore helpers")
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5b33e61034748ef1022766efc0fb8854cfcf749c.1632500058.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent cdb31c2 commit 9f3a2cb
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3605 | 3605 | | |
3606 | 3606 | | |
3607 | 3607 | | |
3608 | | - | |
3609 | 3608 | | |
3610 | 3609 | | |
3611 | 3610 | | |
| |||
3670 | 3669 | | |
3671 | 3670 | | |
3672 | 3671 | | |
3673 | | - | |
3674 | | - | |
3675 | 3672 | | |
3676 | 3673 | | |
3677 | 3674 | | |
| |||
0 commit comments