Staging: iio: Simplify NULL pointer condition
authorCristina Opriceana <cristina.opriceana@gmail.com>
Thu, 19 Mar 2015 19:04:42 +0000 (21:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2015 12:33:50 +0000 (13:33 +0100)
commit9fb163f49ed3b3836f6835f06a5ef9afbabb9c24
tree40d57db598a386f0954244908487ca49a9eba68d
parent2c4b2980ae16a2d8d35f126ddb9fbcba809e2612
Staging: iio: Simplify NULL pointer condition

Replace NULL comparrison with its shorter form.
Done with coccinelle:

@replace_rule@
expression e;
@@

-e == NULL
+ !e

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/magnetometer/hmc5843_core.c