staging: rtl8192u: ieee80211: Use !x in place of NULL comparison
authorVatsala Narang <vatsalanarang@gmail.com>
Thu, 28 Mar 2019 19:09:43 +0000 (00:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2019 16:15:31 +0000 (17:15 +0100)
commitbdcca44e16a2e701724ee305c265e07c36beace7
tree82acd52d86c0c24b2c92a60fad320181798f7070
parent4e1a0d1142584d686f4e76063891787d45860611
staging: rtl8192u: ieee80211: Use !x in place of NULL comparison

Change NULL comparison to Boolean negation.Issue found using Coccinelle

Semantic patch used to solve the problem is as follows:

@replace_rule@
expression e;
@@

- e == NULL
+ !e

Signed-off-by: Vatsala Narang <vatsalanarang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c