qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT a10fcec] ne2000: remove casts from void *


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT a10fcec] ne2000: remove casts from void *
Date: Fri, 28 Aug 2009 02:20:09 -0000

From: Juan Quintela <address@hidden>

Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/ne2000.c b/hw/ne2000.c
index 9f685b4..b17a0fa 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;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]