Skip to content

Commit

Permalink
engines/io_uring: don't use abs() on an unsigned value
Browse files Browse the repository at this point in the history
It doesn't make any sense, for obvious reasons.

Fixes: ebe67b6 ("io_uring: Add IO_U_F_DEVICE_ERROR to identify error types")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
axboe committed Sep 26, 2024
1 parent f37bdd4 commit 9eaa8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ static struct io_u *fio_ioring_cmd_event(struct thread_data *td, int event)
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;
}

Expand Down

0 comments on commit 9eaa8e7

Please sign in to comment.