WSL2-Linux-Kernel/drivers/iio/gyro
Alexandru Ardelean 26ba6db672 iio: gyro: adis16136: check ret val for non-zero vs less-than-zero
The ADIS library functions return zero on success, and negative values for
error. Positive values aren't returned, but we only care about the success
value (which is zero).

This change is mostly needed so that the compiler won't make any inferences
about some about values being potentially un-initialized. This only
triggers after making some functions inline, because the compiler can
better follow return paths.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-11-03 10:14:44 +00:00
..
Kconfig
Makefile
adis16080.c
adis16130.c
adis16136.c
adis16260.c
adxrs450.c
bmg160.h
bmg160_core.c
bmg160_i2c.c
bmg160_spi.c
fxas21002c.h
fxas21002c_core.c
fxas21002c_i2c.c
fxas21002c_spi.c
hid-sensor-gyro-3d.c
itg3200_buffer.c
itg3200_core.c
mpu3050-core.c
mpu3050-i2c.c
mpu3050.h
ssp_gyro_sensor.c
st_gyro.h
st_gyro_buffer.c
st_gyro_core.c
st_gyro_i2c.c
st_gyro_spi.c