summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-02-20 10:51:35 +0100
committerPhilippe Mathieu-Daudé2020-02-20 14:47:08 +0100
commit0eeef0a4d328b0da543c44678d00cfb7546b11a1 (patch)
treeab2c4c9c522bc6c7a284b794fe2b7a41d2664a73 /scripts/coccinelle
parentexec: Let the cpu_[physical]_memory API use void pointer arguments (diff)
downloadqemu-0eeef0a4d328b0da543c44678d00cfb7546b11a1.tar.gz
qemu-0eeef0a4d328b0da543c44678d00cfb7546b11a1.tar.xz
qemu-0eeef0a4d328b0da543c44678d00cfb7546b11a1.zip
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>
Diffstat (limited to 'scripts/coccinelle')
-rw-r--r--scripts/coccinelle/exec_rw_const.cocci10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/coccinelle/exec_rw_const.cocci b/scripts/coccinelle/exec_rw_const.cocci
index fe2cf917c2..9c14165fc0 100644
--- a/scripts/coccinelle/exec_rw_const.cocci
+++ b/scripts/coccinelle/exec_rw_const.cocci
@@ -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)
|