linux/drivers/staging/rtl8192u
Gargi Sharma 3337134e41 staging: rtl8192u: Replace explicit NULL comparison
Replace explicit NULL comparison with ! operator to
simplify code.

Found with Coccinelle script:
@@
expression ptr;
position p;
statement s0, s1;
@@

ptr@p =
\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|usb_alloc_urb\|
alloc_netdev\|dev_alloc_skb\)(...)
... when != ptr

if (
(
+ !
ptr
- == NULL
)
) s0 else s1

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-06 09:17:01 +01:00
..
ieee80211 staging: rtl8192u: Replace explicit NULL comparison 2017-03-06 09:17:01 +01:00
authors
changes
copying
Kconfig
Makefile
r819xU_cmdpkt.c Staging: rtl8192u: r819xU_cmdpkt.c - style fix 2017-02-16 10:41:22 -08:00
r819xU_cmdpkt.h Staging: rtl8192u: r819xU_cmdpkt.h - style fix 2017-02-12 13:37:13 +01:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c staging: rtl8192u: Fixing no new typedef warning 2017-02-12 13:48:33 +01:00
r819xU_firmware.h
r819xU_phy.c Staging: rtl8192u: r819xU_phy.c - style fix 2017-02-12 13:35:26 +01:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c Staging: rtl8192u: r8180_93cx6.c - style fix 2017-02-12 13:40:47 +01:00
r8180_93cx6.h staging: rtl8192u: Removed multiple white lines. 2017-01-16 18:08:57 +01:00
r8190_rtl8256.c Staging: rtl8192u: r8190_rtl8256.c - style fix 2017-02-12 13:40:47 +01:00
r8190_rtl8256.h Staging: rtl8192u: r8190_rtl8256.h - style fix 2017-02-12 13:40:47 +01:00
r8192U_core.c Staging: rtl8192u: r8192U_core.c - style fix 2017-02-16 10:41:22 -08:00
r8192U_dm.c Staging: rtl8192u: Remove useless type conversion 2016-09-20 13:35:45 +02:00
r8192U_dm.h
r8192U_hw.h Staging: rtl8192u: r8192U_hw.h - style fix 2017-02-12 13:40:47 +01:00
r8192U_wx.c staging: rtl8192u: Fix indentation 2017-02-09 13:23:13 +01:00
r8192U_wx.h
r8192U.h Staging: rtl8192u: r8192U.h - style fix 2017-02-16 10:41:22 -08:00