eepro100: cast a void * makes no sense
authorJuan Quintela <quintela@redhat.com>
Mon, 24 Aug 2009 16:42:36 +0000 (18:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 01:46:58 +0000 (20:46 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/eepro100.c

index 722eb5ac714b3554f0aac40198a8a01f15dad9e4..6333ca1a576dca0b2992e91672f955d7a1c7806f 100644 (file)
@@ -507,7 +507,7 @@ static void nic_selective_reset(EEPRO100State * s)
 
 static void nic_reset(void *opaque)
 {
-    EEPRO100State *s = (EEPRO100State *) opaque;
+    EEPRO100State *s = opaque;
     logout("%p\n", s);
     static int first;
     if (!first) {
@@ -1548,7 +1548,7 @@ static ssize_t nic_receive(VLANClientState *vc, const uint8_t * buf, size_t size
 
 static int nic_load(QEMUFile * f, void *opaque, int version_id)
 {
-    EEPRO100State *s = (EEPRO100State *) opaque;
+    EEPRO100State *s = opaque;
     int i;
     int ret;
 
@@ -1638,7 +1638,7 @@ static int nic_load(QEMUFile * f, void *opaque, int version_id)
 
 static void nic_save(QEMUFile * f, void *opaque)
 {
-    EEPRO100State *s = (EEPRO100State *) opaque;
+    EEPRO100State *s = opaque;
     int i;
 
     if (s->pci_dev)