mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Remove unneeded type casts
cpu_physical_memory_read, cpu_physical_memory_write take any pointer as 2nd argument without needing a type cast. Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
fd1ca7e0d5
commit
e1fe50dcb3
16 changed files with 37 additions and 38 deletions
|
@ -197,7 +197,7 @@ static void stream_desc_load(struct Stream *s, hwaddr addr)
|
|||
{
|
||||
struct SDesc *d = &s->desc;
|
||||
|
||||
cpu_physical_memory_read(addr, (void *) d, sizeof *d);
|
||||
cpu_physical_memory_read(addr, d, sizeof *d);
|
||||
|
||||
/* Convert from LE into host endianness. */
|
||||
d->buffer_address = le64_to_cpu(d->buffer_address);
|
||||
|
@ -215,7 +215,7 @@ static void stream_desc_store(struct Stream *s, hwaddr addr)
|
|||
d->nxtdesc = cpu_to_le64(d->nxtdesc);
|
||||
d->control = cpu_to_le32(d->control);
|
||||
d->status = cpu_to_le32(d->status);
|
||||
cpu_physical_memory_write(addr, (void *) d, sizeof *d);
|
||||
cpu_physical_memory_write(addr, d, sizeof *d);
|
||||
}
|
||||
|
||||
static void stream_update_irq(struct Stream *s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue