linux/drivers/iio/imu
Lorenzo Bianconi 955843f87d iio: imu: st_lsm6dsx: check return value from st_lsm6dsx_sensor_set_enable
[ Upstream commit a2dd9bd933 ]

Add missing return value check in st_lsm6dsx_read_oneshot disabling the
sensor. The issue is reported by coverity with the following error:

Unchecked return value:
If the function returns an error value, the error value may be mistaken
for a normal value.

Addresses-Coverity-ID: 1446733 ("Unchecked return value")
Fixes: b5969abfa8 ("iio: imu: st_lsm6dsx: add motion events")
Fixes: 290a6ce11d ("iio: imu: add support to lsm6dsx driver")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2020-02-24 08:38:05 +01:00
..
bmi160 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
inv_mpu6050 iio: imu: inv_mpu6050: fix temperature reporting using bad unit 2019-12-08 18:10:30 +00:00
st_lsm6dsx iio: imu: st_lsm6dsx: check return value from st_lsm6dsx_sensor_set_enable 2020-02-24 08:38:05 +01:00
adis.c Staging / IIO patches for 5.5-rc1 2019-11-27 10:57:52 -08:00
adis16400.c iio: imu: adis16400: check ret val for non-zero vs less-than-zero 2019-11-03 10:16:54 +00:00
adis16460.c iio: imu: adis16460: check ret val for non-zero vs less-than-zero 2019-11-03 10:22:39 +00:00
adis16480.c Third set of IIO new device support cleanups and fixes for the 5.5 cycle. 2019-11-13 19:24:42 +08:00
adis_buffer.c iio: imu: adis16400: fix memory leak 2019-10-09 19:11:27 +01:00
adis_trigger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 149 2019-05-30 11:25:18 -07:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_core.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_i2c.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_spi.c iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Kconfig iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
kmx61.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
Makefile iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00