Commit 00de2287 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

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: default avatarNishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1bb608f2
...@@ -51,16 +51,14 @@ static inline void phydm_check_dmval_txagc(struct phy_dm_struct *dm, u32 used, ...@@ -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 << 16) | (power_index << 8) |
(power_index); (power_index);
for (i = 0; i < ODM_RATEVHTSS2MCS9; i += 4) for (i = 0; i < ODM_RATEVHTSS2MCS9; i += 4)
status = status & status &= phydm_api_set_txagc(
phydm_api_set_txagc(
dm, power_index, dm, power_index,
(enum odm_rf_radio_path) (enum odm_rf_radio_path)
dm_value[1], dm_value[1],
i, false); i, false);
} else if (dm->support_ic_type & ODM_RTL8197F) { } else if (dm->support_ic_type & ODM_RTL8197F) {
for (i = 0; i <= ODM_RATEMCS15; i++) for (i = 0; i <= ODM_RATEMCS15; i++)
status = status & status &= phydm_api_set_txagc(
phydm_api_set_txagc(
dm, power_index, dm, power_index,
(enum odm_rf_radio_path) (enum odm_rf_radio_path)
dm_value[1], dm_value[1],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment