diff options
author | 2016-09-21 12:59:29 +0800 | |
---|---|---|
committer | 2016-09-22 11:54:47 +0200 | |
commit | ce35e9be62837d8242472264b511f9c27992adfa (patch) | |
tree | bd562b6b619917ff1b3612d6c3185f0d48aadc92 /tools/perf/scripts/python/syscall-counts.py | |
parent | staging: most: replace MOST_CH_ISOC_AVP with MOST_CH_ISOC (diff) | |
download | linux-dev-ce35e9be62837d8242472264b511f9c27992adfa.tar.xz linux-dev-ce35e9be62837d8242472264b511f9c27992adfa.zip |
staging: greybus: camera: simplify NULL test
Replace direct comparisons to NULL i.e. 'x == NULL' with '!x' for consistency.
Coccinelle semantic patch used:
@@
identifier func;
expression x;
statement Z;
@@
x = func(...);
if (
(
+ !
x
- == NULL
|
+ !
- NULL ==
x
)
) Z
Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions