diff options
| author | simran singhal <[email protected]> | 2017-03-04 22:16:55 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-03-09 19:06:36 +0100 |
| commit | 6c849caf817da0c4e61003644043d55009114af8 (patch) | |
| tree | 7361c09328a5a180110ced9ae4e5a8cd662aae59 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 4e1c89dec89ac2b94faf2b1b39197086d0a6352d (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 <[email protected]>
Acked-by: Julia Lawall <[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