staging: rtl8723bs: remove code blocks guarded by DEBUG symbol
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sat, 10 Apr 2021 14:20:21 +0000 (16:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Apr 2021 06:45:02 +0000 (08:45 +0200)
remove code blocks guarded by DEBUG symbol
remove undefinition of DEBUG

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/381da3f0c1ddf825b2aa7cbfd074ee2bf42aac4f.1618064274.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/include/autoconf.h

index 2c50ff2..9876de3 100644 (file)
@@ -928,11 +928,6 @@ void rtl8723b_download_BTCoex_AP_mode_rsvd_page(struct adapter *padapter)
        u32 poll = 0;
        u8 val8;
 
-#ifdef DEBUG
-       if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == false) {
-       }
-#endif /*  DEBUG */
-
        pHalData = GET_HAL_DATA(padapter);
        pmlmeext = &padapter->mlmeextpriv;
        pmlmeinfo = &pmlmeext->mlmext_info;
index 3084523..6487aa7 100644 (file)
@@ -754,21 +754,6 @@ static void hal_ReadEFuse_WiFi(
        /*  0xff will be efuse default value instead of 0x00. */
        memset(efuseTbl, 0xFF, EFUSE_MAX_MAP_LEN);
 
-
-#ifdef DEBUG
-if (0) {
-       for (i = 0; i < 256; i++)
-               efuse_OneByteRead(padapter, i, &efuseTbl[i], false);
-       for (i = 0; i < 256; i++) {
-               if (i % 16 == 0)
-                       printk("\n");
-               printk("%02X ", efuseTbl[i]);
-       }
-       printk("\n");
-}
-#endif
-
-
        /*  switch bank back to bank 0 for later BT and wifi use. */
        hal_EfuseSwitchToBank(padapter, 0, bPseudoTest);
 
@@ -818,16 +803,6 @@ if (0) {
        for (i = 0; i < _size_byte; i++)
                pbuf[i] = efuseTbl[_offset+i];
 
-#ifdef DEBUG
-if (1) {
-       for (i = 0; i < _size_byte; i++) {
-               if (i % 16 == 0)
-                       printk("\n");
-               printk("%02X ", pbuf[i]);
-       }
-       printk("\n");
-}
-#endif
        /*  Calculate Efuse utilization */
        EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, &total, bPseudoTest);
        used = eFuse_Addr - 1;
index 222297a..074fee2 100644 (file)
 /*
  * Debug Related Config
  */
-#undef DEBUG
 
-#ifdef DEBUG
-#define DBG    1       /*  for ODM & BTCOEX debug */
-#else /*  !DEBUG */
 #define DBG    0       /*  for ODM & BTCOEX debug */
-#endif /*  !DEBUG */
 
 /* define DBG_XMIT_BUF */
 /* define DBG_XMIT_BUF_EXT */