Skip to contentSkip to conversation

staging: rtlwifi: phydm: Remove parentheses

PATCH Superseded Nishka Dasgupta 2 participants 2 messages Mar 30, 2019 Staging

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 staging: rtlwifi: phydm: Remove parentheses

Remove parentheses on right hand side of expression. Issue found with Coccinelle.

---
Changes in v4:
- Split the patch into two patches.

 drivers/staging/rtlwifi/phydm/phydm_debug.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtlwifi/phydm/phydm_debug.c +5 -5
index 91f2c054d83b..a113e2b63153 100644
@@ -51,20 +51,20 @@ 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 &
+				status = status &
 					  phydm_api_set_txagc(
 						  dm, power_index,
 						  (enum odm_rf_radio_path)
 							  dm_value[1],
-						  i, false));
+						  i, false);
 		} else if (dm->support_ic_type & ODM_RTL8197F) {
 			for (i = 0; i <= ODM_RATEMCS15; i++)
-				status = (status &
-					  phydm_api_set_txagc(
+				status = status &
+					 phydm_api_set_txagc(
 						  dm, power_index,
 						  (enum odm_rf_radio_path)
 							  dm_value[1],
-						  i, false));
+						  i, false);
 		}
 
 		if (status)
Signature · 1 line
2.19.1
#1 lore raw
Quoted 7 lines · Nishka Dasgupta' via outreachy-kernel

Remove parentheses on right hand side of expression. Issue found with Coccinelle.

---
Changes in v4:
- Split the patch into two patches.

If it is split, the subject line should indicate a series.

julia

Quoted 44 lines
 drivers/staging/rtlwifi/phydm/phydm_debug.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtlwifi/phydm/phydm_debug.c +5 -6
index 91f2c054d83b..a113e2b63153 100644
@@ -51,20 +51,20 @@ 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 &
+				status = status &
 					  phydm_api_set_txagc(
 						  dm, power_index,
 						  (enum odm_rf_radio_path)
 							  dm_value[1],
-						  i, false));
+						  i, false);
 		} else if (dm->support_ic_type & ODM_RTL8197F) {
 			for (i = 0; i <= ODM_RATEMCS15; i++)
-				status = (status &
-					  phydm_api_set_txagc(
+				status = status &
+					 phydm_api_set_txagc(
 						  dm, power_index,
 						  (enum odm_rf_radio_path)
 							  dm_value[1],
-						  i, false));
+						  i, false);
 		}
 
 		if (status)
--

2.19.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190330163603.2532-1-nishka.dasgupta%40yahoo.com.
For more options, visit https://groups.google.com/d/optout.