Skip to content

Commit

Permalink
staging: r8188: ODM_BB_RA_MASK is always set
Browse files Browse the repository at this point in the history
Remove the ODM_BB_RA_MASK capability. It is always set for this driver.

Like for ODM_BB_DIG before, we can be sure that ODM_BB_RA_MASK was never
checked before it was set.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211218120423.29906-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Martin Kaiser authored and Greg Kroah-Hartman committed Dec 20, 2021
1 parent 64bdd3a commit 738b35a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/r8188eu/hal/odm.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,9 +725,6 @@ void odm_RefreshRateAdaptiveMask(struct odm_dm_struct *pDM_Odm)
u8 i;
struct adapter *pAdapter = pDM_Odm->Adapter;

if (!(pDM_Odm->SupportAbility & ODM_BB_RA_MASK))
return;

if (pAdapter->bDriverStopped)
return;

Expand Down
3 changes: 1 addition & 2 deletions drivers/staging/r8188eu/hal/rtl8188e_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ static void Update_ODM_ComInfo_88E(struct adapter *Adapter)
struct dm_priv *pdmpriv = &hal_data->dmpriv;
int i;

pdmpriv->InitODMFlag = ODM_BB_RA_MASK |
ODM_BB_FA_CNT |
pdmpriv->InitODMFlag = ODM_BB_FA_CNT |
ODM_BB_RSSI_MONITOR |
ODM_BB_CCK_PD |
ODM_MAC_EDCA_TURBO |
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/r8188eu/include/odm.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ enum odm_common_info_def {

enum odm_ability_def {
/* BB ODM section BIT 0-15 */
ODM_BB_RA_MASK = BIT(1),
ODM_BB_FA_CNT = BIT(3),
ODM_BB_RSSI_MONITOR = BIT(4),
ODM_BB_CCK_PD = BIT(5),
Expand Down

0 comments on commit 738b35a

Please sign in to comment.