mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07: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
|
|
@ -108,7 +108,7 @@ typedef struct {
|
|||
|
||||
static void mcf_fec_read_bd(mcf_fec_bd *bd, uint32_t addr)
|
||||
{
|
||||
cpu_physical_memory_read(addr, (uint8_t *)bd, sizeof(*bd));
|
||||
cpu_physical_memory_read(addr, bd, sizeof(*bd));
|
||||
be16_to_cpus(&bd->flags);
|
||||
be16_to_cpus(&bd->length);
|
||||
be32_to_cpus(&bd->data);
|
||||
|
|
@ -120,7 +120,7 @@ static void mcf_fec_write_bd(mcf_fec_bd *bd, uint32_t addr)
|
|||
tmp.flags = cpu_to_be16(bd->flags);
|
||||
tmp.length = cpu_to_be16(bd->length);
|
||||
tmp.data = cpu_to_be32(bd->data);
|
||||
cpu_physical_memory_write(addr, (uint8_t *)&tmp, sizeof(tmp));
|
||||
cpu_physical_memory_write(addr, &tmp, sizeof(tmp));
|
||||
}
|
||||
|
||||
static void mcf_fec_update(mcf_fec_state *s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue