public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] io_uring: remove excessive unlikely on IS_ERR
@ 2023-01-09 18:58 Dmitrii Bundin
  2023-01-09 23:14 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitrii Bundin @ 2023-01-09 18:58 UTC (permalink / raw)
  To: axboe, asml.silence; +Cc: io-uring, linux-kernel, Dmitrii Bundin

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 <[email protected]>
---
 io_uring/rw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_uring/rw.c b/io_uring/rw.c
index 8227af2e1c0f..27d5e3323a53 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);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-09 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-09 18:58 [PATCH] io_uring: remove excessive unlikely on IS_ERR Dmitrii Bundin
2023-01-09 23:14 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox