linux-uconsole/drivers/iio/imu
Alexandru Ardelean 48e5b2ceaf iio: imu: adis16480: assign bias value only if operation succeeded
commit 9b742763d9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:47:05 +01:00
..
bmi160
inv_mpu6050 iio: imu: mpu6050: add missing available scan masks 2019-12-17 20:36:01 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: take into account ts samples in wm configuration 2018-09-02 21:19:53 +01:00
adis.c iio:imu:adis: Mark expected switch fall-throughs 2018-07-07 18:01:05 +01:00
adis16400.h
adis16400_buffer.c
adis16400_core.c
adis16480.c iio: imu: adis16480: assign bias value only if operation succeeded 2020-01-17 19:47:05 +01:00
adis_buffer.c iio: imu: adis16400: release allocated memory on failure 2019-11-06 13:06:02 +01:00
adis_trigger.c iio: adis_lib: Initialize trigger before requesting interrupt 2018-02-17 14:16:35 +00:00
Kconfig
kmx61.c
Makefile