diff options
| author | 2017-03-04 22:16:55 +0530 | |
|---|---|---|
| committer | 2017-03-09 19:06:36 +0100 | |
| commit | 6c849caf817da0c4e61003644043d55009114af8 (patch) | |
| tree | 7361c09328a5a180110ced9ae4e5a8cd662aae59 /tools/perf/scripts/python | |
| parent | staging: sm750fb: Removed unnecessary parentheses. (diff) | |
staging: vc04_services: Clean up tests if NULL returned on failure
Some functions like kmalloc/kzalloc return NULL on failure.
When NULL represents failure, !x is commonly used.
This was done using Coccinelle:
@@
expression *e;
identifier l1;
@@
e = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\)(...);
...
- e == NULL
+ !e
Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
