From 00de2287a7699b6488fea374826f24549a0a487f Mon Sep 17 00:00:00 2001 From: Nishka Dasgupta Date: Sun, 31 Mar 2019 01:18:15 +0530 Subject: [PATCH] staging: rtlwifi: phydm: Move operator to left hand side Simplify expressions from `status = status & ` to `status &= ` to make the code more readable. Signed-off-by: Nishka Dasgupta Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtlwifi/phydm/phydm_debug.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtlwifi/phydm/phydm_debug.c b/drivers/staging/rtlwifi/phydm/phydm_debug.c index a113e2b631537..0c60f16daa2a6 100644 --- a/drivers/staging/rtlwifi/phydm/phydm_debug.c +++ b/drivers/staging/rtlwifi/phydm/phydm_debug.c @@ -51,16 +51,14 @@ 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( + 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( + status &= phydm_api_set_txagc( dm, power_index, (enum odm_rf_radio_path) dm_value[1], -- 2.30.2