Patchwork [09/22] pci: remove casts from void *

login
register
mail settings
Submitter Juan Quintela
Date Aug. 24, 2009, 11:03 a.m.
Message ID <7e320bc8d8cca137d07474ecf854855ea9220ffd.1251111439.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31909/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 24, 2009, 11:03 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/pci.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/hw/pci.c b/hw/pci.c
index 27eac04..319f2ed 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -75,7 +75,7 @@  static PCIBus *first_bus;

 static void pcibus_save(QEMUFile *f, void *opaque)
 {
-    PCIBus *bus = (PCIBus *)opaque;
+    PCIBus *bus = opaque;
     int i;

     qemu_put_be32(f, bus->nirq);
@@ -85,7 +85,7 @@  static void pcibus_save(QEMUFile *f, void *opaque)

 static int  pcibus_load(QEMUFile *f, void *opaque, int version_id)
 {
-    PCIBus *bus = (PCIBus *)opaque;
+    PCIBus *bus = opaque;
     int i, nirq;

     if (version_id != 1)
@@ -106,7 +106,7 @@  static int  pcibus_load(QEMUFile *f, void *opaque, int version_id)

 static void pci_bus_reset(void *opaque)
 {
-    PCIBus *bus = (PCIBus *)opaque;
+    PCIBus *bus = opaque;
     int i;

     for (i = 0; i < bus->nirq; i++) {
@@ -624,7 +624,7 @@  uint32_t pci_data_read(void *opaque, uint32_t addr, int len)
 /* 0 <= irq_num <= 3. level must be 0 or 1 */
 static void pci_set_irq(void *opaque, int irq_num, int level)
 {
-    PCIDevice *pci_dev = (PCIDevice *)opaque;
+    PCIDevice *pci_dev = opaque;
     PCIBus *bus;
     int change;