Преглед на файлове

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>
Varsha Rao преди 7 години
родител
ревизия
4e5f881d43
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      drivers/net/wireless/intel/ipw2x00/ipw2200.c

+ 1 - 1
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;
 	u32 ret = 0;
 
 
-	if ((priv == NULL))
+	if (!priv)
 		return 0;
 		return 0;
 
 
 	if (!(priv->ieee->modulation & LIBIPW_OFDM_MODULATION))
 	if (!(priv->ieee->modulation & LIBIPW_OFDM_MODULATION))