remarkable-linux/drivers/staging/rtl8188eu/os_dep
Elise Lennion 9a3ca7240b staging: rtl8188eu: 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
..
ioctl_linux.c Staging: rtl8188eu: ioctl_linux: Clean up if function returned NULL on failure. 2016-09-12 12:29:27 +02:00
mlme_linux.c staging: rtl8188eu: Remove license paragraph with mailing address 2016-03-28 07:30:36 -07:00
mon.c staging: rtl8188eu: Convert to using IFF_NO_QUEUE 2016-04-16 22:02:13 -04:00
os_intfs.c staging:r8188eu: remove intf_stop member of adapter structure 2016-10-16 10:25:28 +02:00
osdep_service.c staging: rtl8188eu: os_dep: remove unnecessary alloc fail message 2016-10-25 10:57:13 +02:00
recv_linux.c staging:r8188eu: remove rtw_os_recv_resource_alloc function 2016-10-16 10:25:14 +02:00
rtw_android.c staging: rtl8188eu: Remove license paragraph with mailing address 2016-03-28 07:30:36 -07:00
usb_intf.c staging:r8188eu: remove intf_stop member of adapter structure 2016-10-16 10:25:28 +02:00
usb_ops_linux.c staging: rtl8188eu: Standardize test for NULL. 2016-10-30 11:09:03 -04:00
xmit_linux.c staging:r8188eu: remove padapter and free_sz arguments of rtw_os_xmit_resource_free function 2016-10-16 10:25:26 +02:00