Staging: iio: accel: Remove explicit NULL comparison
authorCristina Opriceana <cristina.opriceana@gmail.com>
Tue, 31 Mar 2015 10:04:29 +0000 (13:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2015 15:23:21 +0000 (17:23 +0200)
commitaa5587f3cb9fde2db852b5549ee561198aa95748
treeed76c4b30c4ec85ffbc375509959c50b6e743567
parentd3f31e87dbcc2c6d3a9cf28e1404cf43ef265ebe
Staging: iio: accel: Remove explicit NULL comparison

This patch removes explicit NULL comparison and writes it in its
equivalent 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/accel/lis3l02dq_ring.c