hw/dma/xilinx_axidma: remove dead code
PATCH 1/1 hw/dma/xilinx_axidma: remove dead code
stream_desc_show() (and DEBUG_ENET) appear to be unused, as the function isn't compilable (there are broken PRI format strings).
--- hw/dma/xilinx_axidma.c | 10 ---------- 1 file changed, 10 deletions(-)
hw/dma/xilinx_axidma.c +0 -10
@@ -177,16 +177,6 @@ static inline int streamid_from_addr(hwaddr addr)return sid; } -#ifdef DEBUG_ENET -static void stream_desc_show (struct SDesc *d) -{ -qemu_log ("buffer_addr = " PRIx64"\n" , d->buffer_address); -qemu_log ("nxtdesc = " PRIx64"\n" , d->nxtdesc); -qemu_log ("control = %x\n" , d->control); -qemu_log ("status = %x\n" , d->status); -} -#endif -static void stream_desc_load (struct Stream *s,hwaddr addr) {struct SDesc *d = &s->desc;
Signature · 1 line
2.4.3
Quoted 7 lines · Andrew Jones
stream_desc_show()(andDEBUG_ENET) appear to be unused, as the function isn't compilable (there are broken PRI format strings).Signed-off-by Andrew Jones <[email protected]>--- hw/dma/xilinx_axidma.c | 10 ---------- 1 file changed, 10 deletions(-)
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Alistair Francis
Reviewed-byQuoted 10 lines · Eric Blake
Quoted 7 lines · Andrew Jones
stream_desc_show()(andDEBUG_ENET) appear to be unused, as the function isn't compilable (there are broken PRI format strings).Signed-off-by Andrew Jones <[email protected]>--- hw/dma/xilinx_axidma.c | 10 ---------- 1 file changed, 10 deletions(-)Reviewed-by Eric Blake <[email protected]>
Thanks,
Alistair
Quoted 5 lines
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Peter Maydell
AppliedQuoted 19 lines · Andrew Jones
stream_desc_show()(andDEBUG_ENET) appear to be unused, as the function isn't compilable (there are broken PRI format strings).Signed-off-by Andrew Jones <[email protected]>--- hw/dma/xilinx_axidma.c | 10 ---------- 1 file changed, 10 deletions(-)hw/dma/xilinx_axidma.c +0
-3@@ -177,16 +177,6 @@ static inline int streamid_from_addr(hwaddr addr)return sid; } -#ifdef DEBUG_ENET -static void stream_desc_show (struct SDesc *d) -{
hw/dma/xilinx_axidma.c static inline int streamid_from_addr(hwaddr addr) · line 182
Quoted 10 lines
hw/dma/xilinx_axidma.c +0
-7-qemu_log ("buffer_addr = " PRIx64"\n" , d->buffer_address); -qemu_log ("nxtdesc = " PRIx64"\n" , d->nxtdesc); -qemu_log ("control = %x\n" , d->control); - qemu_log("status = %x\n", d->status); -} -#endif -static void stream_desc_load (struct Stream *s,hwaddr addr) {struct SDesc *d = &s->desc;
Applied to target-arm.next, thanks.
-- PMM