staging: rtl8723bs: remove ODM_InitDebugSetting() function
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 30 Apr 2021 14:57:01 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:38 +0000 (11:19 +0200)
remove ODM_InitDebugSetting() function. It was
intended to initialize removed private debug
system. So remove it.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/6a8524b780674d05f33977eb86878d95c7338a1a.1619794331.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm.c
drivers/staging/rtl8723bs/hal/odm_debug.c
drivers/staging/rtl8723bs/hal/odm_debug.h

index fcd3f97..45e4038 100644 (file)
@@ -290,8 +290,6 @@ static void odm_CommonInfoSelfInit(struct dm_odm_t *pDM_Odm)
        pDM_Odm->bCckHighPower = (bool) PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG(CCK_RPT_FORMAT, pDM_Odm), ODM_BIT(CCK_RPT_FORMAT, pDM_Odm));
        pDM_Odm->RFPathRxEnable = (u8) PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG(BB_RX_PATH, pDM_Odm), ODM_BIT(BB_RX_PATH, pDM_Odm));
 
-       ODM_InitDebugSetting(pDM_Odm);
-
        pDM_Odm->TxRate = 0xFF;
 }
 
index b35451b..1a2e367 100644 (file)
@@ -7,38 +7,3 @@
 
 #include "odm_precomp.h"
 
-void ODM_InitDebugSetting(struct dm_odm_t *pDM_Odm)
-{
-       pDM_Odm->DebugLevel = ODM_DBG_LOUD;
-
-       pDM_Odm->DebugComponents =
-/* BB Functions */
-/*             ODM_COMP_DIG                                    | */
-/*             ODM_COMP_RA_MASK                                | */
-/*             ODM_COMP_DYNAMIC_TXPWR          | */
-/*             ODM_COMP_FA_CNT                         | */
-/*             ODM_COMP_RSSI_MONITOR                   | */
-/*             ODM_COMP_CCK_PD                         | */
-/*             ODM_COMP_ANT_DIV                                | */
-/*             ODM_COMP_PWR_SAVE                               | */
-/*             ODM_COMP_PWR_TRAIN                      | */
-/*             ODM_COMP_RATE_ADAPTIVE          | */
-/*             ODM_COMP_PATH_DIV                               | */
-/*             ODM_COMP_DYNAMIC_PRICCA         | */
-/*             ODM_COMP_RXHP                                   | */
-/*             ODM_COMP_MP                                     | */
-/*             ODM_COMP_CFO_TRACKING           | */
-
-/* MAC Functions */
-/*             ODM_COMP_EDCA_TURBO                     | */
-/*             ODM_COMP_EARLY_MODE                     | */
-/* RF Functions */
-/*             ODM_COMP_TX_PWR_TRACK           | */
-/*             ODM_COMP_RX_GAIN_TRACK          | */
-/*             ODM_COMP_CALIBRATION                    | */
-/* Common */
-/*             ODM_COMP_COMMON                         | */
-/*             ODM_COMP_INIT                                   | */
-/*             ODM_COMP_PSD                                    | */
-0;
-}
index c7c7865..9401134 100644 (file)
@@ -85,6 +85,4 @@
 #define ODM_COMP_COMMON                                BIT30
 #define ODM_COMP_INIT                          BIT31
 
-void ODM_InitDebugSetting(struct dm_odm_t *pDM_Odm);
-
 #endif /*  __ODM_DBG_H__ */