* [PATCH] ipw2x00: clean up clang warning on extraneous parentheses
@ 2018-09-30 22:38 Colin King
2018-10-01 8:14 ` Sergei Shtylyov
2018-10-01 15:49 ` Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2018-09-30 22:38 UTC (permalink / raw)
To: Stanislav Yakovlev, Kalle Valo, David S . Miller, linux-wireless, netdev
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
There are extraneous parantheses that are causing clang to produce a
warning so remove these.
Clean up clang warning:
equality comparison with extraneous parentheses [-Wparentheses-equality]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
index 9644e7b93645..bbdca13c5a9f 100644
--- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
@@ -5652,7 +5652,7 @@ static void ipw_merge_adhoc_network(struct work_struct *work)
}
mutex_lock(&priv->mutex);
- if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) {
+ if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
IPW_DEBUG_MERGE("remove network %*pE\n",
priv->essid_len, priv->essid);
ipw_remove_current_network(priv);
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ipw2x00: clean up clang warning on extraneous parentheses
2018-09-30 22:38 [PATCH] ipw2x00: clean up clang warning on extraneous parentheses Colin King
@ 2018-10-01 8:14 ` Sergei Shtylyov
2018-10-01 15:49 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2018-10-01 8:14 UTC (permalink / raw)
To: Colin King, Stanislav Yakovlev, Kalle Valo, David S . Miller,
linux-wireless, netdev
Cc: kernel-janitors, linux-kernel
Hello!
On 10/1/2018 1:38 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> There are extraneous parantheses that are causing clang to produce a
Parentheses.
> warning so remove these.
>
> Clean up clang warning:
> equality comparison with extraneous parentheses [-Wparentheses-equality]
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
[...]
MBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ipw2x00: clean up clang warning on extraneous parentheses
2018-09-30 22:38 [PATCH] ipw2x00: clean up clang warning on extraneous parentheses Colin King
2018-10-01 8:14 ` Sergei Shtylyov
@ 2018-10-01 15:49 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2018-10-01 15:49 UTC (permalink / raw)
To: Colin King
Cc: Stanislav Yakovlev, David S . Miller, linux-wireless, netdev,
kernel-janitors, linux-kernel
Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> There are extraneous parantheses that are causing clang to produce a
> warning so remove these.
>
> Clean up clang warning:
> equality comparison with extraneous parentheses [-Wparentheses-equality]
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
I applied an identical patch few minutes ago:
c15ace868dd1 ipw2x00: Remove unnecessary parentheses
Patch set to Rejected.
--
https://patchwork.kernel.org/patch/10621549/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-01 15:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-30 22:38 [PATCH] ipw2x00: clean up clang warning on extraneous parentheses Colin King
2018-10-01 8:14 ` Sergei Shtylyov
2018-10-01 15:49 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).