From e1fe50dcb3c86e25ce482a7f67f2ac5405bced8a Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 12 Apr 2013 20:53:58 +0200 Subject: Remove unneeded type casts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cpu_physical_memory_read, cpu_physical_memory_write take any pointer as 2nd argument without needing a type cast. Signed-off-by: Stefan Weil Reviewed-by: Andreas Färber Signed-off-by: Stefan Hajnoczi --- hw/microblaze/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/microblaze') diff --git a/hw/microblaze/boot.c b/hw/microblaze/boot.c index 23cb11d..e543d88 100644 --- a/hw/microblaze/boot.c +++ b/hw/microblaze/boot.c @@ -80,7 +80,7 @@ static int microblaze_load_dtb(hwaddr addr, } } - cpu_physical_memory_write(addr, (void *)fdt, fdt_size); + cpu_physical_memory_write(addr, fdt, fdt_size); #else /* We lack libfdt so we cannot manipulate the fdt. Just pass on the blob to the kernel. */ -- cgit v1.1