staging: rtlwifi: phydm: Simplify `status = status & <expression>`
PATCH 1/1 staging: rtlwifi: phydm: Simplify `status = status & <expression>`
Simplify occurrences of status = status & <expression> by modifying them to `status &= <expression> to make the code more readable.
Signed-off-by Nishka Dasgupta <[email protected]>
--- drivers/staging/rtlwifi/phydm/phydm_debug.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/staging/rtlwifi/phydm/phydm_debug.c +2 -6
@@ -51,17 +51,13 @@ static inline void phydm_check_dmval_txagc(struct phy_dm_struct *dm, u32 used, (power_index <<16 ) | (power_index <<8 ) | (power_index);for (i =0 ; i <ODM_RATEVHTSS2MCS9 ; i +=4 ) - status = status & -phydm_api_set_txagc ( - dm, power_index, + status &=phydm_api_set_txagc (dm, power_index, (enum odm_rf_radio_path ) dm_value[1 ], i, false); }else if (dm->support_ic_type &ODM_RTL8197F ) {for (i =0 ; i <=ODM_RATEMCS15 ; i++) - status = status & -phydm_api_set_txagc ( - dm, power_index, + status &=phydm_api_set_txagc (dm, power_index, (enum odm_rf_radio_path ) dm_value[1 ], i, false);
Signature · 1 line
2.19.1