aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-24 18:42:36 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 20:46:58 -0500
commit769cf7a50e2d88270df34aa57846e0c88de9535f (patch)
tree7d4ed269db3fe9ee41429f0f300402e2afae1323 /hw
parenteepro100: convert casts to DO_UPCAST() (diff)
downloadqemu-kvm-769cf7a50e2d88270df34aa57846e0c88de9535f.tar.gz
qemu-kvm-769cf7a50e2d88270df34aa57846e0c88de9535f.tar.bz2
qemu-kvm-769cf7a50e2d88270df34aa57846e0c88de9535f.zip
eepro100: cast a void * makes no sense
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/eepro100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 722eb5ac7..6333ca1a5 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -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)