diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-02-19 20:28:22 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-02-20 14:47:08 +0100 |
commit | b7cbebf2b9d7aa8854cfd6a45484e160244e9f48 (patch) | |
tree | bc79526f8e8936820d3a52fdef813a18221fb2c4 /hw/dma/xlnx-zdma.c | |
parent | 4ef044cb148a5238161310f06bc581aeed70059f (diff) | |
download | qemu-b7cbebf2b9d7aa8854cfd6a45484e160244e9f48.zip qemu-b7cbebf2b9d7aa8854cfd6a45484e160244e9f48.tar.gz qemu-b7cbebf2b9d7aa8854cfd6a45484e160244e9f48.tar.bz2 |
Remove unnecessary cast when using the address_space API
This commit was produced with the included Coccinelle script
scripts/coccinelle/exec_rw_const.
Two lines in hw/net/dp8393x.c that Coccinelle produced that
were over 80 characters were re-wrapped by hand.
Suggested-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/dma/xlnx-zdma.c')
-rw-r--r-- | hw/dma/xlnx-zdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dma/xlnx-zdma.c b/hw/dma/xlnx-zdma.c index 8fb83f5..683abbe 100644 --- a/hw/dma/xlnx-zdma.c +++ b/hw/dma/xlnx-zdma.c @@ -364,7 +364,7 @@ static uint64_t zdma_update_descr_addr(XlnxZDMA *s, bool type, } else { addr = zdma_get_regaddr64(s, basereg); addr += sizeof(s->dsc_dst); - address_space_rw(s->dma_as, addr, s->attr, (void *) &next, 8, false); + address_space_rw(s->dma_as, addr, s->attr, &next, 8, false); zdma_put_regaddr64(s, basereg, next); } return next; |