io_uring: remove excessive unlikely on IS_ERR
authorDmitrii Bundin <dmitrii.bundin.a@gmail.com>
Mon, 9 Jan 2023 18:58:54 +0000 (21:58 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:40 +0000 (15:17 -0700)
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>
io_uring/rw.c

index 9c3ddd46a1adc5abc4f10af6459381a24c4490a7..3a3aef7e7c3336684a691fadb3e18327fa13e750 100644 (file)
@@ -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);