qlge: disable unsed dump code
authorstephen hemminger <shemminger@vyatta.com>
Thu, 21 Oct 2010 07:50:55 +0000 (07:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2010 22:07:13 +0000 (15:07 -0700)
The driver has lots of unused code to dump data structures to
console.  Use existing simple way to remove the code with ifdef.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge.h

index 2b7a018593b9ccff1e87aecec0e9af5b8f3fb4bc..22821398fc63765054eff056ab2529beedfb30fc 100644 (file)
@@ -2243,14 +2243,12 @@ void ql_check_lb_frame(struct ql_adapter *, struct sk_buff *);
 int ql_own_firmware(struct ql_adapter *qdev);
 int ql_clean_lb_rx_ring(struct rx_ring *rx_ring, int budget);
 
-#if 1
-#define QL_ALL_DUMP
-#define QL_REG_DUMP
-#define QL_DEV_DUMP
-#define QL_CB_DUMP
+/* #define QL_ALL_DUMP */
+/* #define QL_REG_DUMP */
+/* #define QL_DEV_DUMP */
+/* #define QL_CB_DUMP */
 /* #define QL_IB_DUMP */
 /* #define QL_OB_DUMP */
-#endif
 
 #ifdef QL_REG_DUMP
 extern void ql_dump_xgmac_control_regs(struct ql_adapter *qdev);