aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/gyro
diff options
context:
space:
mode:
authorCristina Moraru <cristina.moraru09@gmail.com>2015-10-20 22:55:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-24 19:32:09 -0700
commit05824120e4ff5f431370db106d1a034b3923e0db (patch)
tree78731c6b688192981f11ad0c4d0df036113d4084 /drivers/staging/iio/gyro
parentstaging: iio: trigger: Remove explicit comparisons (diff)
downloadlinux-dev-05824120e4ff5f431370db106d1a034b3923e0db.tar.xz
linux-dev-05824120e4ff5f431370db106d1a034b3923e0db.zip
staging: iio: gyro: Remove explicit comparisons
Remove comparisons to 0 or NULL Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/gyro')
-rw-r--r--drivers/staging/iio/gyro/adis16060_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/gyro/adis16060_core.c b/drivers/staging/iio/gyro/adis16060_core.c
index 4c5869dd8223..80783e703f0d 100644
--- a/drivers/staging/iio/gyro/adis16060_core.c
+++ b/drivers/staging/iio/gyro/adis16060_core.c
@@ -67,7 +67,7 @@ static int adis16060_spi_read(struct iio_dev *indio_dev, u16 *val)
* starts to place data MSB first on the DOUT line at
* the 6th falling edge of SCLK
*/
- if (ret == 0)
+ if (!ret)
*val = ((st->buf[0] & 0x3) << 12) |
(st->buf[1] << 4) |
((st->buf[2] >> 4) & 0xF);