mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Remove unnecessary cast when using the cpu_[physical]_memory API
This commit was produced with the included Coccinelle script scripts/coccinelle/exec_rw_const. Suggested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
d7ef71ef42
commit
0eeef0a4d3
5 changed files with 31 additions and 28 deletions
|
@ -42,6 +42,16 @@ type T;
|
|||
+ address_space_write_rom(E1, E2, E3, E4, E5)
|
||||
|
|
||||
|
||||
- cpu_physical_memory_rw(E1, (T *)(E2), E3, E4)
|
||||
+ cpu_physical_memory_rw(E1, E2, E3, E4)
|
||||
|
|
||||
- cpu_physical_memory_read(E1, (T *)(E2), E3)
|
||||
+ cpu_physical_memory_read(E1, E2, E3)
|
||||
|
|
||||
- cpu_physical_memory_write(E1, (T *)(E2), E3)
|
||||
+ cpu_physical_memory_write(E1, E2, E3)
|
||||
|
|
||||
|
||||
- dma_memory_read(E1, E2, (T *)(E3), E4)
|
||||
+ dma_memory_read(E1, E2, E3, E4)
|
||||
|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue