Skip to contentSkip to conversation

hw/dma/xilinx_axidma: remove dead code

PATCH Applied Andrew Jones 4 participants 4 messages Jan 6, 2016 – Jan 7, 2016 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

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
index b1cfa11356a26..f5ebc1f0e0734 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Andrew Jones

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(-)
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Reviewed-by
#2 lore raw
Quoted 10 lines · Eric Blake
Quoted 7 lines · Andrew Jones

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(-)

Thanks,

Alistair

Quoted 5 lines

--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org

#3 lore raw
In reply to Andrew Jones
Quoted 19 lines · Andrew Jones

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 -3
index b1cfa11356a26..f5ebc1f0e0734 100644
@@ -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