From 9eaa8e7c8e0b73244c287d3149301590265191dd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 26 Sep 2024 15:04:35 -0600 Subject: [PATCH] engines/io_uring: don't use abs() on an unsigned value It doesn't make any sense, for obvious reasons. Fixes: ebe67b667f25 ("io_uring: Add IO_U_F_DEVICE_ERROR to identify error types") Signed-off-by: Jens Axboe --- engines/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/io_uring.c b/engines/io_uring.c index 5e086914..6c07c101 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -589,7 +589,7 @@ ret: io_u_set(td, io_u, IO_U_F_DEVICE_ERROR); else io_u_clear(td, io_u, IO_U_F_DEVICE_ERROR); - io_u->error = abs(io_u->error); + io_u->error = io_u->error; return io_u; } -- 2.25.1