diff options
author | simran singhal <singhalsimran0@gmail.com> | 2017-03-10 10:43:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-12 14:57:00 +0100 |
commit | 7cf51d34af7ad86fc14bbc2217d733f271e396e7 (patch) | |
tree | 9cd62895e2a5e4ad99fadbccefab111a762c151a /drivers/staging/media/atomisp/pci/atomisp2 | |
parent | 1e8b15d06a0ec40180134736aad3674137cad4d9 (diff) | |
download | op-kernel-dev-7cf51d34af7ad86fc14bbc2217d733f271e396e7.zip op-kernel-dev-7cf51d34af7ad86fc14bbc2217d733f271e396e7.tar.gz |
staging: vpfe_mc_capture: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/atomisp2')
0 files changed, 0 insertions, 0 deletions