commit | a1aae088e7f9dbd97164bbacc2b624d9bacd98a3 | [log] [tgz] |
---|---|---|
author | simran singhal <singhalsimran0@gmail.com> | Fri Mar 10 02:13:12 2017 -0300 |
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | Mon Apr 17 16:58:11 2017 -0300 |
tree | 2a05ddf3e766a5a21df5fdd3bea6064bcdae3893 | |
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>