summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel
diff options
context:
space:
mode:
authorVarsha Rao2018-06-03 13:11:35 +0200
committerKalle Valo2018-06-27 18:04:41 +0200
commit4e5f881d430aa243c8723c0de48fa16af30b292d (patch)
treeca882deaa1c7c2c4e93fe8f43a311ebe43106da0 /drivers/net/wireless/intel
parentmwifiex: uap: do not chok ethernet header in bridge path (diff)
downloadkernel-qcow2-linux-4e5f881d430aa243c8723c0de48fa16af30b292d.tar.gz
kernel-qcow2-linux-4e5f881d430aa243c8723c0de48fa16af30b292d.tar.xz
kernel-qcow2-linux-4e5f881d430aa243c8723c0de48fa16af30b292d.zip
net: ipw2x00: Replace NULL comparison with !priv
Remove extra parentheses and replace NULL comparison with !priv, to fix clang warning of extraneous parentheses and check patch issue. Following coccinelle script is used to fix it. @disable is_null,paren@ expression e; statement s; @@ if ( - (e==NULL) +!e ) s Signed-off-by: Varsha Rao <rvarsha016@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/intel')
-rw-r--r--drivers/net/wireless/intel/ipw2x00/ipw2200.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
index 8a858f7e36f4..62140109d2ac 100644
--- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
@@ -7112,7 +7112,7 @@ static u32 ipw_qos_get_burst_duration(struct ipw_priv *priv)
{
u32 ret = 0;
- if ((priv == NULL))
+ if (!priv)
return 0;
if (!(priv->ieee->modulation & LIBIPW_OFDM_MODULATION))