staging: greybus: camera: simplify NULL test
authorEva Rachel Retuya <eraretuya@gmail.com>
Wed, 21 Sep 2016 04:59:29 +0000 (12:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:54:47 +0000 (11:54 +0200)
commitce35e9be62837d8242472264b511f9c27992adfa
treebd562b6b619917ff1b3612d6c3185f0d48aadc92
parent0540609fe217c3eed5804bcc095b0c41db5e63b0
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>
drivers/staging/greybus/camera.c