aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-12-13 19:32:45 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-01-18 10:43:51 +0100
commit592d0bc0302ff5b5209ecd7f8733f285bc008cff (patch)
tree26d4e2a901bf194ed8e5e344c01a2d43bcdb98b2 /util
parent729ba8e933f8af5800c3a92b37e630e9bdaa9f1e (diff)
remove unnecessary casts from uintptr_t
uintptr_t, or unsigned long which is equivalent on Linux I32LP64 systems, is an unsigned type and there is no need to further cast to __u64 which is another unsigned integer type; widening casts from unsigned integers zero-extend the value. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/fdmon-io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fdmon-io_uring.c b/util/fdmon-io_uring.c
index 16054c5ede..b0d68bdc44 100644
--- a/util/fdmon-io_uring.c
+++ b/util/fdmon-io_uring.c
@@ -180,7 +180,7 @@ static void add_poll_remove_sqe(AioContext *ctx, AioHandler *node)
struct io_uring_sqe *sqe = get_sqe(ctx);
#ifdef LIBURING_HAVE_DATA64
- io_uring_prep_poll_remove(sqe, (__u64)(uintptr_t)node);
+ io_uring_prep_poll_remove(sqe, (uintptr_t)node);
#else
io_uring_prep_poll_remove(sqe, node);
#endif