diff options
| author | simran singhal <[email protected]> | 2017-03-04 22:16:54 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-03-09 14:27:13 +0100 |
| commit | 4be4c379299e47ca00768f67ae47515ac74af3bd (patch) | |
| tree | b5789f805b98b5799251a05e81394f235c71b841 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 1839f03706d6f0f196bb15b1f99c4a5fe76a829e (diff) | |
staging: speakup: 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/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions