Commit ae58a4a1f0 for qemu.org
commit ae58a4a1f0a27ca8fa0cfb5456a5f4f6c999e98d
Author: Bernhard Beschow <shentey@gmail.com>
Date: Mon Sep 21 23:47:07 2026 +0200
hw/usb/imx-usb-phy: Avoid casting from void *
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20260921214710.29422-40-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
diff --git a/hw/usb/imx-usb-phy.c b/hw/usb/imx-usb-phy.c
index c25566d0fa..2b2913c387 100644
--- a/hw/usb/imx-usb-phy.c
+++ b/hw/usb/imx-usb-phy.c
@@ -49,7 +49,7 @@ static void imx_usbphy_reset(DeviceState *dev)
static uint64_t imx_usbphy_read(void *opaque, hwaddr offset, unsigned size)
{
- IMXUSBPHYState *s = (IMXUSBPHYState *)opaque;
+ IMXUSBPHYState *s = opaque;
uint32_t index = offset >> 2;
uint32_t value;
@@ -108,7 +108,7 @@ static uint64_t imx_usbphy_read(void *opaque, hwaddr offset, unsigned size)
static void imx_usbphy_write(void *opaque, hwaddr offset, uint64_t value,
unsigned size)
{
- IMXUSBPHYState *s = (IMXUSBPHYState *)opaque;
+ IMXUSBPHYState *s = opaque;
uint32_t index = offset >> 2;
switch (index) {