remove all RT_TRACE logs Signed-off-by: Fabio Aiuto <fabioaiuto83@xxxxxxxxx> --- drivers/staging/rtl8723bs/core/rtw_eeprom.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_eeprom.c b/drivers/staging/rtl8723bs/core/rtw_eeprom.c index 3cbd65dee741..f2a2bdb47c7d 100644 --- a/drivers/staging/rtl8723bs/core/rtw_eeprom.c +++ b/drivers/staging/rtl8723bs/core/rtw_eeprom.c @@ -36,7 +36,6 @@ void shift_out_bits(_adapter *padapter, u16 data, u16 count) _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } mask = 0x01 << (count - 1); @@ -49,8 +48,7 @@ _func_enter_; if (data & mask) x |= _EEDI; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); - goto out; + goto out; } rtw_write8(padapter, EE_9346CR, (u8)x); udelay(CLOCK_RATE); @@ -59,7 +57,6 @@ _func_enter_; mask = mask >> 1; } while (mask); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x &= ~_EEDI; @@ -73,7 +70,6 @@ u16 shift_in_bits(_adapter *padapter) u16 x, d = 0, i; _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x = rtw_read8(padapter, EE_9346CR); @@ -85,7 +81,6 @@ _func_enter_; d = d << 1; up_clk(padapter, &x); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x = rtw_read8(padapter, EE_9346CR); @@ -123,23 +118,19 @@ void eeprom_clean(_adapter *padapter) u16 x; _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x = rtw_read8(padapter, EE_9346CR); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } x &= ~(_EECS | _EEDI); rtw_write8(padapter, EE_9346CR, (u8)x); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } up_clk(padapter, &x); - if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); + if (padapter->bSurpriseRemoved == true) { goto out; } down_clk(padapter, &x); @@ -156,14 +147,12 @@ u16 eeprom_read16(_adapter *padapter, u16 reg) /*ReadEEprom*/ _func_enter_; if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } /* select EEPROM, reset bits, set _EECS*/ x = rtw_read8(padapter, EE_9346CR); if (padapter->bSurpriseRemoved == true) { - RT_TRACE(_module_rtl871x_eeprom_c_, _drv_err_, ("padapter->bSurpriseRemoved==true")); goto out; } -- 2.20.1