linux/drivers/staging/rtl8192u
Elise Lennion 6e8cb1cf26 staging: rtl8192u: Standardize test for NULL.
The test for NULL of the return variable of functions was changed from
(ret == NULL) to !ret to match the standard.

Coccinelle was used with semantic patch:
@@
expression e;
identifier id, f;
statement S;
@@

f(...) { <+...

id =
\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap
\|usb_alloc_urb\|alloc_netdev\|dev_alloc_skb\) (...)

... when any
    when != id = e

+ if (!id)
- if (\(NULL == id\|id == NULL\))
S

...+> }

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-30 11:09:03 -04:00
..
ieee80211 staging: rtl8192u: Standardize test for NULL. 2016-10-30 11:09:03 -04:00
authors
changes
copying
Kconfig
Makefile
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c
r819xU_firmware.h
r819xU_phy.c staging: rtl8192u: use to_delayed_work 2016-02-07 19:56:45 -08:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c staging: rtl8192u: propagate errors in eprom_read 2016-06-18 19:49:02 -07:00
r8180_93cx6.h staging: rtl8192u: propagate errors in eprom_read 2016-06-18 19:49:02 -07:00
r8190_rtl8256.c Staging: rtl8192u: Remove unnecessary semicolon. 2016-03-28 07:30:36 -07:00
r8190_rtl8256.h
r8192U_core.c staging: rtl8192u: remove unused functions in r8192U_core.c 2016-09-23 19:00:44 +02:00
r8192U_dm.c Staging: rtl8192u: Remove useless type conversion 2016-09-20 13:35:45 +02:00
r8192U_dm.h
r8192U_hw.h
r8192U_wx.c rtl8192u: r8192_priv: Replace semaphore wx_sem with mutex 2016-06-18 19:50:48 -07:00
r8192U_wx.h
r8192U.h staging/rtl8192u: use s8 instead of char 2016-08-21 18:21:28 +02:00