qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] remove unnecessary casts from uintptr_t


From: Richard Henderson
Subject: Re: [PATCH] remove unnecessary casts from uintptr_t
Date: Thu, 18 Jan 2024 07:33:35 +1100
User-agent: Mozilla Thunderbird

On 1/18/24 03:05, Paolo Bonzini wrote:
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>
---
  block/io_uring.c      | 2 +-
  hw/vfio/common.c      | 4 ++--
  target/i386/sev.c     | 8 ++++----
  util/fdmon-io_uring.c | 2 +-
  4 files changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]