diff options
author | Nishka Dasgupta <nishka.dasgupta@yahoo.com> | 2019-03-31 01:18:15 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-01 19:19:48 +0200 |
commit | 00de2287a7699b6488fea374826f24549a0a487f (patch) | |
tree | ce74a77d1a058362bfd2ecafe1f7109e46bb62a5 | |
parent | 1bb608f231b2b0d866e7490978d31f66ab6d07b6 (diff) |
staging: rtlwifi: phydm: Move operator to left hand side
Simplify expressions from `status = status & <expression>` to `status &=
<expression>` to make the code more readable.
Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtlwifi/phydm/phydm_debug.c | 6 |
1 files changed, 2 insertions, 4 deletions
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], |