summaryrefslogtreecommitdiffstats
path: root/io_uring/rw.c
diff options
context:
space:
mode:
authorDmitrii Bundin <dmitrii.bundin.a@gmail.com>2023-01-09 19:58:54 +0100
committerJens Axboe <axboe@kernel.dk>2023-01-29 23:17:40 +0100
commit81594e7e7a146888f0bac4fa782b0b5d3c37fdff (patch)
treea7899b39a09eb2a1d85d044ddda80dfc0d290597 /io_uring/rw.c
parentio_uring/msg_ring: Pass custom flags to the cqe (diff)
downloadlinux-81594e7e7a146888f0bac4fa782b0b5d3c37fdff.tar.xz
linux-81594e7e7a146888f0bac4fa782b0b5d3c37fdff.zip
io_uring: remove excessive unlikely on IS_ERR
The IS_ERR function uses the IS_ERR_VALUE macro under the hood which already wraps the condition into unlikely. Signed-off-by: Dmitrii Bundin <dmitrii.bundin.a@gmail.com> Link: https://lore.kernel.org/r/20230109185854.25698-1-dmitrii.bundin.a@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.c')
-rw-r--r--io_uring/rw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/rw.c b/io_uring/rw.c
index 9c3ddd46a1ad..3a3aef7e7c33 100644
--- a/io_uring/rw.c
+++ b/io_uring/rw.c
@@ -410,7 +410,7 @@ static inline int io_import_iovec(int rw, struct io_kiocb *req,
unsigned int issue_flags)
{
*iovec = __io_import_iovec(rw, req, s, issue_flags);
- if (unlikely(IS_ERR(*iovec)))
+ if (IS_ERR(*iovec))
return PTR_ERR(*iovec);
iov_iter_save_state(&s->iter, &s->iter_state);