hw: Remove unnecessary cast when calling dma_memory_read()
commit18610bfd3e9a91c174e009c0528c9c0dc1ffb888
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 20 Feb 2020 09:39:00 +0000 (20 10:39 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 20 Feb 2020 13:47:08 +0000 (20 14:47 +0100)
treec4d57ff5a979a762867d6576b1df600b161980da
parent4b314c1a71e398f428de69ae719967cd9902f61d
hw: Remove unnecessary cast when calling dma_memory_read()

Since its introduction in commit d86a77f8abb, dma_memory_read()
always accepted void pointer argument. Remove the unnecessary
casts.

This commit was produced with the included Coccinelle script
scripts/coccinelle/exec_rw_const.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
v4: Drop parenthesis when removing cast (Eric Blake)
hw/arm/smmu-common.c
hw/arm/smmuv3.c
hw/sd/sdhci.c
scripts/coccinelle/exec_rw_const.cocci [new file with mode: 0644]