diff options
author | simran singhal <[email protected]> | 2017-03-10 10:43:12 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-03-12 14:57:00 +0100 |
commit | 1e8b15d06a0ec40180134736aad3674137cad4d9 (patch) | |
tree | 548a876b0d4bf2a210a00ef9c3b9e96b3cf89932 /lib/netdev-notifier-error-inject.c | |
parent | 49637a458b61629672a8ae19fdae2058c64815cf (diff) |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions