Patchwork [15/26] ne2000: remove casts from void *

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

Comments

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

Patch

diff --git a/hw/ne2000.c b/hw/ne2000.c
index b9c018a..1555fc3 100644
--- a/hw/ne2000.c
+++ b/hw/ne2000.c
@@ -650,7 +650,7 @@  static uint32_t ne2000_reset_ioport_read(void *opaque, uint32_t addr)

 static void ne2000_save(QEMUFile* f,void* opaque)
 {
-	NE2000State* s=(NE2000State*)opaque;
+	NE2000State* s = opaque;
         uint32_t tmp;

         if (s->pci_dev)
@@ -681,7 +681,7 @@  static void ne2000_save(QEMUFile* f,void* opaque)

 static int ne2000_load(QEMUFile* f,void* opaque,int version_id)
 {
-	NE2000State* s=(NE2000State*)opaque;
+	NE2000State* s = opaque;
         int ret;
         uint32_t tmp;