diff options
author | Elise Lennion | 2016-10-29 02:29:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-10-30 16:09:03 +0100 |
commit | 9a3ca7240bc2d300cb6b9b977bbaf475648113da (patch) | |
tree | 16d911701307b8c3e65e86326ec115f80f209e5a /drivers/staging/rtl8188eu/include/rtw_mlme.h | |
parent | staging: rtl8192u: Standardize test for NULL. (diff) | |
download | kernel-qcow2-linux-9a3ca7240bc2d300cb6b9b977bbaf475648113da.tar.gz kernel-qcow2-linux-9a3ca7240bc2d300cb6b9b977bbaf475648113da.tar.xz kernel-qcow2-linux-9a3ca7240bc2d300cb6b9b977bbaf475648113da.zip |
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>
Diffstat (limited to 'drivers/staging/rtl8188eu/include/rtw_mlme.h')
0 files changed, 0 insertions, 0 deletions