Skip to contentSkip to conversation

net: wireless: brcmsmac: Remove extra parentheses

PATCH In review Varsha Rao 2 participants 2 messages Jul 25, 2018 – Aug 31, 2018

Subsystems (3)
lore
Share & tools
lore

Varsha Rao

author
#0 lore raw

PATCH 1/1 net: wireless: brcmsmac: Remove extra parentheses

Remove the unnecessary parentheses to fix the clang warning of extraneous parentheses.

---
 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c +2 -2
index 1a187557982e..4deba3075083 100644
@@ -25453,12 +25453,12 @@ void wlc_phy_cal_perical_nphy_run(struct brcms_phy *pi, u8 caltype)
 			(pi->cal_type_override ==
 			 PHY_PERICAL_FULL) ? true : false;
 
-	if ((pi->mphase_cal_phase_id > MPHASE_CAL_STATE_INIT)) {
+	if (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_INIT) {
 		if (pi->nphy_txiqlocal_chanspec != pi->radio_chanspec)
 			wlc_phy_cal_perical_mphase_restart(pi);
 	}
 
-	if ((pi->mphase_cal_phase_id == MPHASE_CAL_STATE_RXCAL))
+	if (pi->mphase_cal_phase_id == MPHASE_CAL_STATE_RXCAL)
 		wlapi_bmac_write_shm(pi->sh->physhim, M_CTS_DURATION, 10000);
 
 	wlapi_suspend_mac_and_wait(pi->sh->physhim);
Signature · 1 line
2.17.0
#1 lore raw

Re: [PATCH] brcmsmac: Remove extra parentheses

Quoted 4 lines · Varsha Rao

Remove the unnecessary parentheses to fix the clang warning of extraneous parentheses.

Patch applied to wireless-drivers-next.git, thanks.

9e9e11d83238 brcmsmac: Remove extra parentheses

Signature · 3 lines
https://patchwork.kernel.org/patch/10544573/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches