mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
pci: Replace unneeded type casts in calls of pci_register_bar
There is no need for these type casts (as other existing code shows). So re-write the first argument without type cast (and remove a related TODO comment). Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
bba5ed772a
commit
b90c73cf47
6 changed files with 10 additions and 11 deletions
|
@ -1197,7 +1197,7 @@ qemu_irq *openpic_init (PCIBus *bus, int *pmem_index, int nb_cpus,
|
|||
pci_conf[0x3d] = 0x00; // no interrupt pin
|
||||
|
||||
/* Register I/O spaces */
|
||||
pci_register_bar((PCIDevice *)opp, 0, 0x40000,
|
||||
pci_register_bar(&opp->pci_dev, 0, 0x40000,
|
||||
PCI_BASE_ADDRESS_SPACE_MEMORY, &openpic_map);
|
||||
} else {
|
||||
opp = qemu_mallocz(sizeof(openpic_t));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue