mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
8ad708a9d8
commit
2d7279984f
1 changed files with 3 additions and 2 deletions
|
@ -299,7 +299,8 @@ static int add_amd_xgbe_fdt_node(SysBusDevice *sbdev, void *opaque)
|
||||||
void *guest_fdt = data->fdt, *host_fdt;
|
void *guest_fdt = data->fdt, *host_fdt;
|
||||||
const void *r;
|
const void *r;
|
||||||
int i, prop_len;
|
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;
|
uint64_t mmio_base, irq_number;
|
||||||
uint32_t guest_clock_phandles[2];
|
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__);
|
error_report("%s clocks property should contain 2 handles", __func__);
|
||||||
exit(1);
|
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[0] = qemu_fdt_alloc_phandle(guest_fdt);
|
||||||
guest_clock_phandles[1] = qemu_fdt_alloc_phandle(guest_fdt);
|
guest_clock_phandles[1] = qemu_fdt_alloc_phandle(guest_fdt);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue