aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorsimran singhal <[email protected]>2017-03-04 22:16:55 +0530
committerGreg Kroah-Hartman <[email protected]>2017-03-09 19:06:36 +0100
commit6c849caf817da0c4e61003644043d55009114af8 (patch)
tree7361c09328a5a180110ced9ae4e5a8cd662aae59 /tools/perf/scripts/python
parent4e1c89dec89ac2b94faf2b1b39197086d0a6352d (diff)
staging: vc04_services: 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]> Acked-by: Julia Lawall <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions