diff options
author | simran singhal <singhalsimran0@gmail.com> | 2017-03-10 08:13:12 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-17 22:58:11 +0300 |
commit | a1aae088e7f9dbd97164bbacc2b624d9bacd98a3 (patch) | |
tree | 2a05ddf3e766a5a21df5fdd3bea6064bcdae3893 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 6eb1951d53a3eeb8cefa101b8022f5f6572f9d5d (diff) | |
download | linux-a1aae088e7f9dbd97164bbacc2b624d9bacd98a3.tar.xz |
[media] staging: lirc_zilog: 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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions