diff options
author | simran singhal <singhalsimran0@gmail.com> | 2017-03-10 02:13:12 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-17 16:58:11 -0300 |
commit | a1aae088e7f9dbd97164bbacc2b624d9bacd98a3 (patch) | |
tree | 2a05ddf3e766a5a21df5fdd3bea6064bcdae3893 /net/9p | |
parent | 6eb1951d53a3eeb8cefa101b8022f5f6572f9d5d (diff) |
[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 'net/9p')
0 files changed, 0 insertions, 0 deletions