Skip to contentSkip to conversation

pci-bridge/dec: remove unused code

PATCH In review Peng Hao 2 participants 2 messages Aug 22, 2018

lore
Share & tools
lore

Peng Hao

author
#0 lore raw

PATCH 1/1 pci-bridge/dec: remove unused code

---
 hw/pci-bridge/dec.c | 10 ----------
 1 file changed, 10 deletions(-)
hw/pci-bridge/dec.c +0 -10
index 84492d5..ab39185 100644
@@ -31,16 +31,6 @@
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pci_bus.h"
 
-/* debug DEC */
-//#define DEBUG_DEC
-
-#ifdef DEBUG_DEC
-#define DEC_DPRINTF(fmt, ...)                               \
-    do { printf("DEC: " fmt , ## __VA_ARGS__); } while (0)
-#else
-#define DEC_DPRINTF(fmt, ...)
-#endif
-
 #define DEC_21154(obj) OBJECT_CHECK(DECState, (obj), TYPE_DEC_21154)
 
 typedef struct DECState {
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Peng Hao
---
  hw/pci-bridge/dec.c | 10 ----------
  1 file changed, 10 deletions(-)
hw/pci-bridge/dec.c +0 -3
index 84492d5..ab39185 100644
@@ -31,16 +31,6 @@
  #include "hw/pci/pci_bridge.h"
  #include "hw/pci/pci_bus.h"
 
-/* debug DEC */
-//#define DEBUG_DEC
-

hw/pci-bridge/dec.c line 36

Quoted 10 lines
hw/pci-bridge/dec.c +0 -7
-#ifdef DEBUG_DEC
-#define DEC_DPRINTF(fmt, ...)                               \
-    do { printf("DEC: " fmt , ## __VA_ARGS__); } while (0)
-#else
-#define DEC_DPRINTF(fmt, ...)
-#endif
-
  #define DEC_21154(obj) OBJECT_CHECK(DECState, (obj), TYPE_DEC_21154)
 
  typedef struct DECState {

Thanks,
Marcel