Skip to contentSkip to conversation

net: wireless: cw1200: 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: cw1200: Remove extra parentheses

Remove unnecessary parentheses to fix the extraneous parentheses clang warning.

---
 drivers/net/wireless/st/cw1200/txrx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/st/cw1200/txrx.c +2 -2
index f7b1b0062db3..8c800ef23159 100644
@@ -624,9 +624,9 @@ cw1200_tx_h_bt(struct cw1200_common *priv,
 			priority = WSM_EPTA_PRIORITY_ACTION;
 		else if (ieee80211_is_mgmt(t->hdr->frame_control))
 			priority = WSM_EPTA_PRIORITY_MGT;
-		else if ((wsm->queue_id == WSM_QUEUE_VOICE))
+		else if (wsm->queue_id == WSM_QUEUE_VOICE)
 			priority = WSM_EPTA_PRIORITY_VOICE;
-		else if ((wsm->queue_id == WSM_QUEUE_VIDEO))
+		else if (wsm->queue_id == WSM_QUEUE_VIDEO)
 			priority = WSM_EPTA_PRIORITY_VIDEO;
 		else
 			priority = WSM_EPTA_PRIORITY_DATA;
Signature · 1 line
2.17.0
#1 lore raw

Re: [PATCH] cw1200: Remove extra parentheses

Quoted 4 lines · Varsha Rao

Remove unnecessary parentheses to fix the extraneous parentheses clang warning.

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

057118edfc36 cw1200: Remove extra parentheses

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

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