diff options
| author | Elise Lennion <[email protected]> | 2016-10-28 22:29:40 -0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-10-30 11:09:03 -0400 |
| commit | 6e8cb1cf26ccf99582826d20032433b1c8d57774 (patch) | |
| tree | b8ecd7e1e753abf661e35a57f8035f3aff483fc2 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 15ed5398c94c8e29ee11022926351cb77cf70e7f (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions