From: Antoine Schweitzer-Chaput Date: Tue, 24 Jun 2014 18:41:38 +0000 (+0200) Subject: staging: rtl8192u: remove unused define DEBUG_EPROM X-Git-Tag: v3.18-rc1~130^2~1367 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e2709273e63870721bd0587cdd07000d9619f515;p=karo-tx-linux.git staging: rtl8192u: remove unused define DEBUG_EPROM Also remove the code now unreachable. Signed-off-by: Antoine Schweitzer-Chaput Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 76403864644c..ccf00f7cffc9 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -61,7 +61,6 @@ double __extendsfdf2(float a) #undef DUMP_TX #undef DEBUG_TX_DESC2 #undef RX_DONT_PASS_UL -#undef DEBUG_EPROM #undef DEBUG_RX_VERBOSE #undef DUMMY_RX #undef DEBUG_ZERO_RX @@ -665,15 +664,6 @@ static void tx_timeout(struct net_device *dev) schedule_work(&priv->reset_wq); } - -/* this is only for debug */ -void dump_eprom(struct net_device *dev) -{ - int i; - for (i = 0; i < 63; i++) - RT_TRACE(COMP_EPROM, "EEPROM addr %x : %x", i, eprom_read(dev, i)); -} - void rtl8192_update_msr(struct net_device *dev) { struct r8192_priv *priv = ieee80211_priv(dev); @@ -2869,9 +2859,6 @@ static short rtl8192_init(struct net_device *dev) return -ENOMEM; } -#ifdef DEBUG_EPROM - dump_eprom(dev); -#endif return 0; }