From: Nishka Dasgupta Date: Sat, 30 Mar 2019 19:48:15 +0000 (+0530) Subject: staging: rtlwifi: phydm: Move operator to left hand side X-Git-Tag: v5.2-rc1~153^2~207 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=00de2287a7699b6488fea374826f24549a0a487f;p=linux.git 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 --- diff --git a/drivers/staging/rtlwifi/phydm/phydm_debug.c b/drivers/staging/rtlwifi/phydm/phydm_debug.c index a113e2b63153..0c60f16daa2a 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],