diff options
author | Elise Lennion <elise.lennion@gmail.com> | 2016-10-29 03:29:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-30 18:09:03 +0300 |
commit | 15ed5398c94c8e29ee11022926351cb77cf70e7f (patch) | |
tree | 40179e06ab132a4eed8c8854d5fe6b55f2e27f72 /drivers/staging/rtl8192e/dot11d.h | |
parent | 7dd448f0986a9c2cf076ca0bea7c9be967e7fe07 (diff) | |
download | linux-15ed5398c94c8e29ee11022926351cb77cf70e7f.tar.xz |
staging: rtl8192e: 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/rtl8192e/dot11d.h')
0 files changed, 0 insertions, 0 deletions