Skip to content

Commit

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

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/313d08514d2105c826ef3c92555fa557def2b9c2.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 83147d8 commit ae75f93
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
10 changes: 0 additions & 10 deletions drivers/staging/rtl8723bs/hal/hal_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,13 +1087,6 @@ u8 SetHalDefVar(
u8 bResult = _SUCCESS;

switch (variable) {
case HW_DEF_FA_CNT_DUMP:
/* ODM_COMP_COMMON */
if (*((u8 *)value))
odm->DebugComponents |= (ODM_COMP_DIG | ODM_COMP_FA_CNT);
else
odm->DebugComponents &= ~(ODM_COMP_DIG | ODM_COMP_FA_CNT);
break;
case HAL_DEF_DBG_RX_INFO_DUMP:

if (odm->bLinked) {
Expand Down Expand Up @@ -1177,9 +1170,6 @@ u8 GetHalDefVar(
*((int *)value) = psta->rssi_stat.UndecoratedSmoothedPWDB;
}
break;
case HW_DEF_ODM_DBG_FLAG:
*((u64 *)value) = odm->DebugComponents;
break;
case HW_DEF_ODM_DBG_LEVEL:
*((u32 *)value) = odm->DebugLevel;
break;
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/rtl8723bs/hal/odm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,10 +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_COMP:
pDM_Odm->DebugComponents = Value;
break;

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

u64 DebugComponents;
u32 DebugLevel;

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

0 comments on commit ae75f93

Please sign in to comment.