diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-11-19 19:29:07 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-11-22 10:00:06 +0200 |
commit | b90c73cf475d69959dde208d00961c3cb7a57475 (patch) | |
tree | 0d940813e4ebb1304719669de403d854bb7b16d8 /hw/usb-ohci.c | |
parent | bba5ed772a562fefdb218df8d821c3b537ce5759 (diff) | |
download | hqemu-b90c73cf475d69959dde208d00961c3cb7a57475.zip hqemu-b90c73cf475d69959dde208d00961c3cb7a57475.tar.gz |
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>
Diffstat (limited to 'hw/usb-ohci.c')
-rw-r--r-- | hw/usb-ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index c60fd8d..8fb2f83 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -1741,7 +1741,7 @@ static int usb_ohci_initfn_pci(struct PCIDevice *dev) ohci->state.irq = ohci->pci_dev.irq[0]; /* TODO: avoid cast below by using dev */ - pci_register_bar((struct PCIDevice *)ohci, 0, 256, + pci_register_bar(&ohci->pci_dev, 0, 256, PCI_BASE_ADDRESS_SPACE_MEMORY, ohci_mapfunc); return 0; } |