WSL2-Linux-Kernel/drivers/iio
Alexandru Ardelean 9b742763d9 iio: imu: adis16480: assign bias value only if operation succeeded
This was found only after the whole thing with the inline functions, but
the compiler actually found something. The value of the `bias` (in
adis16480_get_calibbias()) should only be set if the read operation was
successful.

No actual known problem occurs as users of this function all
ultimately check the return value.  Hence probably not stable material.

Fixes: 2f3abe6cbb ("iio:imu: Add support for the ADIS16480 and similar IMUs")
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-11-03 10:40:25 +00:00
..
accel iio: st: Drop GPIO include 2019-10-27 15:55:45 +00:00
adc iio: dln2-adc: fix iio_triggered_buffer_postenable() position 2019-11-02 14:36:33 +00:00
afe
amplifiers
buffer
chemical iio: chemical: sgp30: drop excess semicolon 2019-10-22 12:41:07 +01:00
common chrome platform changes for v5.4 2019-09-19 14:14:28 -07:00
dac iio: dac: ad7303: replace mlock with own lock 2019-10-15 21:11:07 +01:00
dummy
frequency
gyro iio: gyro: adis16136: check ret val for non-zero vs less-than-zero 2019-11-03 10:14:44 +00:00
health
humidity iio: hdc100x: fix iio_triggered_buffer_{predisable,postenable} positions 2019-11-02 14:39:41 +00:00
imu iio: imu: adis16480: assign bias value only if operation succeeded 2019-11-03 10:40:25 +00:00
light iio: light: Add support for ADUX1020 sensor 2019-10-15 21:11:02 +01:00
magnetometer iio: st: Drop GPIO include 2019-10-27 15:55:45 +00:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio: st: Drop GPIO include 2019-10-27 15:55:45 +00:00
proximity iio: proximity: pulsedlight v2: Tidy up an endian issue 2019-10-18 19:57:47 +01:00
resolver
temperature iio: temperature: Add support for LTC2983 2019-10-22 11:34:19 +01:00
trigger
Kconfig
Makefile
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c iio: core: Add optional symbolic label to device attributes 2019-10-07 21:31:18 +01:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c