mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 15:49:42 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ac1640fbd8
commit
05824120e4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user