diff options
author | Juan Quintela <quintela@redhat.com> | 2009-10-07 16:56:21 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-12 09:42:30 -0500 |
commit | 18c0fb307c40b6a47f6de7a7b4fb9a5e3cc0d8e3 (patch) | |
tree | 7dbc981c5c51e655cd1acfc129d28ada0929b033 /hw/ide/mmio.c | |
parent | edcca5a3b8f3456a13f6d0de7cbfddc4122c368b (diff) |
ide: remove uselsess casts from void *
Patchworks-ID: 35298
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ide/mmio.c')
-rw-r--r-- | hw/ide/mmio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/ide/mmio.c b/hw/ide/mmio.c index acaa900c89..7a6bf3249d 100644 --- a/hw/ide/mmio.c +++ b/hw/ide/mmio.c @@ -43,7 +43,7 @@ typedef struct { static uint32_t mmio_ide_read (void *opaque, target_phys_addr_t addr) { - MMIOState *s = (MMIOState*)opaque; + MMIOState *s = opaque; IDEBus *bus = s->bus; addr >>= s->shift; if (addr & 7) @@ -55,7 +55,7 @@ static uint32_t mmio_ide_read (void *opaque, target_phys_addr_t addr) static void mmio_ide_write (void *opaque, target_phys_addr_t addr, uint32_t val) { - MMIOState *s = (MMIOState*)opaque; + MMIOState *s = opaque; IDEBus *bus = s->bus; addr >>= s->shift; if (addr & 7) @@ -78,7 +78,7 @@ static CPUWriteMemoryFunc * const mmio_ide_writes[] = { static uint32_t mmio_ide_status_read (void *opaque, target_phys_addr_t addr) { - MMIOState *s= (MMIOState*)opaque; + MMIOState *s= opaque; IDEBus *bus = s->bus; return ide_status_read(bus, 0); } @@ -86,7 +86,7 @@ static uint32_t mmio_ide_status_read (void *opaque, target_phys_addr_t addr) static void mmio_ide_cmd_write (void *opaque, target_phys_addr_t addr, uint32_t val) { - MMIOState *s = (MMIOState*)opaque; + MMIOState *s = opaque; IDEBus *bus = s->bus; ide_cmd_write(bus, 0, val); } |