Skip to content

Commit

Permalink
staging: rtl8723bs: remove DebugLevel member in dm_odm_t struct
Browse files Browse the repository at this point in the history
remove DebugLevel in dm_odm_t struct,
remove private debug level tracing.

remove unused variable as well to suppress compiler warning.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/ac4afb00f904511e0cbb23136f8e7a3e204ad7ed.1619794331.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Fabio Aiuto authored and Greg Kroah-Hartman committed May 10, 2021
1 parent ae75f93 commit 1cad68f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/rtl8723bs/hal/hal_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,6 @@ u8 GetHalDefVar(
)
{
struct hal_com_data *hal_data = GET_HAL_DATA(adapter);
struct dm_odm_t *odm = &(hal_data->odmpriv);
u8 bResult = _SUCCESS;

switch (variable) {
Expand All @@ -1170,9 +1169,6 @@ u8 GetHalDefVar(
*((int *)value) = psta->rssi_stat.UndecoratedSmoothedPWDB;
}
break;
case HW_DEF_ODM_DBG_LEVEL:
*((u32 *)value) = odm->DebugLevel;
break;
case HAL_DEF_DBG_DM_FUNC:
*((u32 *)value) = hal_data->odmpriv.SupportAbility;
break;
Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/rtl8723bs/hal/odm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,9 +1172,6 @@ void ODM_CmnInfoUpdate(struct dm_odm_t *pDM_Odm, u32 CmnInfo, u64 Value)
pDM_Odm->RSSI_Min = (u8)Value;
break;

case ODM_CMNINFO_DBG_LEVEL:
pDM_Odm->DebugLevel = (u32)Value;
break;
case ODM_CMNINFO_RA_THRESHOLD_HIGH:
pDM_Odm->RateAdaptive.HighRSSIThresh = (u8)Value;
break;
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/rtl8723bs/hal/odm.h
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,6 @@ struct dm_odm_t { /* DM_Out_Source_Dynamic_Mechanism_Structure */
enum phy_reg_pg_type PhyRegPgValueType;
u8 PhyRegPgVersion;

u32 DebugLevel;

u32 NumQryPhyStatusAll; /* CCK + OFDM */
u32 LastNumQryPhyStatusAll;
u32 RxPWDBAve;
Expand Down

0 comments on commit 1cad68f

Please sign in to comment.