summaryrefslogtreecommitdiff
path: root/hw/net/mcf_fec.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-04-12 20:53:58 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-04-19 11:36:33 +0200
commite1fe50dcb3c86e25ce482a7f67f2ac5405bced8a (patch)
tree065342a959517395be8db91c7dca32a496cdcb6f /hw/net/mcf_fec.c
parentfd1ca7e0d5f76c6787428171355bcde49133c9c1 (diff)
downloadqemu-e1fe50dcb3c86e25ce482a7f67f2ac5405bced8a.tar.gz
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>
Diffstat (limited to 'hw/net/mcf_fec.c')
-rw-r--r--hw/net/mcf_fec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/mcf_fec.c b/hw/net/mcf_fec.c
index 9b6805267d..2ef5a0d73d 100644
--- a/hw/net/mcf_fec.c
+++ b/hw/net/mcf_fec.c
@@ -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)