From: Cristina Moraru Date: Tue, 20 Oct 2015 19:55:46 +0000 (+0300) Subject: staging: iio: gyro: Remove explicit comparisons X-Git-Tag: v4.4-rc1~125^2~263 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=05824120e4ff5f431370db106d1a034b3923e0db;p=uclinux-h8%2Flinux.git staging: iio: gyro: Remove explicit comparisons Remove comparisons to 0 or NULL Signed-off-by: Cristina Moraru Signed-off-by: Greg Kroah-Hartman --- 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);