diff options
author | Markus Armbruster <armbru@redhat.com> | 2022-09-23 14:00:23 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-10-22 22:50:27 +0200 |
commit | 2d7279984fdf735fb80f32e5a09f777e4188c57e (patch) | |
tree | 74c658f7c989f5ce6bdc0aa88f7157f2f7e37ef8 /hw | |
parent | 8ad708a9d8f7e40a1fc33c69d1590f10e3da50b0 (diff) | |
download | qemu-2d7279984fdf735fb80f32e5a09f777e4188c57e.zip qemu-2d7279984fdf735fb80f32e5a09f777e4188c57e.tar.gz qemu-2d7279984fdf735fb80f32e5a09f777e4188c57e.tar.bz2 |
hw/core: Tidy up unnecessary casting away of const
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220923120025.448759-2-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/core/sysbus-fdt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/core/sysbus-fdt.c b/hw/core/sysbus-fdt.c index edb0c49..eebcd28 100644 --- a/hw/core/sysbus-fdt.c +++ b/hw/core/sysbus-fdt.c @@ -299,7 +299,8 @@ static int add_amd_xgbe_fdt_node(SysBusDevice *sbdev, void *opaque) void *guest_fdt = data->fdt, *host_fdt; const void *r; int i, prop_len; - uint32_t *irq_attr, *reg_attr, *host_clock_phandles; + uint32_t *irq_attr, *reg_attr; + const uint32_t *host_clock_phandles; uint64_t mmio_base, irq_number; uint32_t guest_clock_phandles[2]; @@ -339,7 +340,7 @@ static int add_amd_xgbe_fdt_node(SysBusDevice *sbdev, void *opaque) error_report("%s clocks property should contain 2 handles", __func__); exit(1); } - host_clock_phandles = (uint32_t *)r; + host_clock_phandles = r; guest_clock_phandles[0] = qemu_fdt_alloc_phandle(guest_fdt); guest_clock_phandles[1] = qemu_fdt_alloc_phandle(guest_fdt); |