summary refs log tree commit diff stats
path: root/hw/virtio/virtio-net-pci.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-07-23 20:14:28 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-07-23 22:34:33 +0200
commitc9e0b9a59ce6499c32affad6415560b1ad1d708f (patch)
treeeb3577894631fa5d15d4b6e177225a8673fa5733 /hw/virtio/virtio-net-pci.c
parent2f28f28e74d9e8861701e5597b314fa85965ecd4 (diff)
downloadfocaccia-qemu-c9e0b9a59ce6499c32affad6415560b1ad1d708f.tar.gz
focaccia-qemu-c9e0b9a59ce6499c32affad6415560b1ad1d708f.zip
hw/char/goldfish: Use DMA memory API
Rather than using address_space_rw(..., 0 or 1),
use the simpler DMA memory API which expand to
the same code. This allows removing a cast on
the 'buf' variable which is really const. Since
'buf' is only used in the CMD_READ_BUFFER case,
we can reduce its scope.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240723181850.46000-1-philmd@linaro.org>
Diffstat (limited to 'hw/virtio/virtio-net-pci.c')
0 files changed, 0 insertions, 0 deletions