]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipw2x00: Replace NULL comparison with !priv
authorVarsha Rao <rvarsha016@gmail.com>
Sun, 3 Jun 2018 11:11:35 +0000 (16:41 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Jun 2018 16:04:41 +0000 (19:04 +0300)
commit0daa92349b10742de642e1124061860e5c3af1ce
treeca882deaa1c7c2c4e93fe8f43a311ebe43106da0
parent3a544adeba1f2321ebf99ed9f643204d6156edbe
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>
drivers/net/wireless/intel/ipw2x00/ipw2200.c