Skip to contentSkip to conversation

net: wireless: ath6kl: Remove unnecessary parentheses

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

Subsystems (3)
lore
Share & tools
lore

Varsha Rao

author
#0 lore raw

PATCH 1/1 net: wireless: ath6kl: Remove unnecessary parentheses

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

---
 drivers/net/wireless/ath/ath6kl/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath6kl/main.c +1 -1
index 808fb30be9ad..451297441532 100644
@@ -639,7 +639,7 @@ void ath6kl_connect_event(struct ath6kl_vif *vif, u16 channel, u8 *bssid,
 	memcpy(vif->bssid, bssid, sizeof(vif->bssid));
 	vif->bss_ch = channel;
 
-	if ((vif->nw_type == INFRA_NETWORK)) {
+	if (vif->nw_type == INFRA_NETWORK) {
 		ath6kl_wmi_listeninterval_cmd(ar->wmi, vif->fw_vif_idx,
 					      vif->listen_intvl_t, 0);
 		ath6kl_check_ch_switch(ar, channel);
Signature · 1 line
2.17.0
#1 lore raw
Quoted 5 lines · Varsha Rao

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

Patch applied to ath-next branch of ath.git, thanks.

4ac1f003e72a ath6kl: Remove unnecessary parentheses

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

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