diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-23 20:14:28 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-23 22:34:33 +0200 |
commit | c9e0b9a59ce6499c32affad6415560b1ad1d708f (patch) | |
tree | eb3577894631fa5d15d4b6e177225a8673fa5733 /hw/scsi/scsi-disk.c | |
parent | 2f28f28e74d9e8861701e5597b314fa85965ecd4 (diff) | |
download | qemu-c9e0b9a59ce6499c32affad6415560b1ad1d708f.zip qemu-c9e0b9a59ce6499c32affad6415560b1ad1d708f.tar.gz qemu-c9e0b9a59ce6499c32affad6415560b1ad1d708f.tar.bz2 |
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/scsi/scsi-disk.c')
0 files changed, 0 insertions, 0 deletions