Patchwork [10/12] qlge: disable unsed dump code

login
register
mail settings
Submitter stephen hemminger
Date Oct. 21, 2010, 5:50 p.m.
Message ID <20101021175148.934670209@vyatta.com>
Download mbox | patch
Permalink /patch/68739/
State Accepted
Delegated to: David Miller
Headers show

Comments

stephen hemminger - Oct. 21, 2010, 5:50 p.m.
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>

---
 drivers/net/qlge/qlge.h |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- a/drivers/net/qlge/qlge.h	2010-10-21 09:54:17.264568433 -0700
+++ b/drivers/net/qlge/qlge.h	2010-10-21 09:55:10.045930105 -0700
@@ -2243,14 +2243,12 @@  void ql_check_lb_frame(struct ql_adapter
 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);