Patchwork [06/26] rtl8139: remove pointless cast from void *

login
register
mail settings
Submitter Juan Quintela
Date Aug. 24, 2009, 4:42 p.m.
Message ID <c33ad955cc30dcbb62c7ca501436e39157147413.1251131364.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31966/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 24, 2009, 4:42 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/rtl8139.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index a79b066..830ab88 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -3118,7 +3118,7 @@  static uint32_t rtl8139_mmio_readl(void *opaque, target_phys_addr_t addr)

 static void rtl8139_save(QEMUFile* f,void* opaque)
 {
-    RTL8139State* s=(RTL8139State*)opaque;
+    RTL8139State* s = opaque;
     unsigned int i;

     pci_device_save(&s->dev, f);
@@ -3206,7 +3206,7 @@  static void rtl8139_save(QEMUFile* f,void* opaque)

 static int rtl8139_load(QEMUFile* f,void* opaque,int version_id)
 {
-    RTL8139State* s=(RTL8139State*)opaque;
+    RTL8139State* s = opaque;
     unsigned int i;
     int ret;