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>
This commit is contained in:
Juan Quintela 2009-10-07 16:56:21 +02:00 committed by Anthony Liguori
parent edcca5a3b8
commit 18c0fb307c
2 changed files with 13 additions and 13 deletions

View file

@ -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);
}