mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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:
parent
edcca5a3b8
commit
18c0fb307c
2 changed files with 13 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue