linux_dsm_epyc7002/drivers/iio/imu
Lorenzo Bianconi a2dd9bd933 iio: imu: st_lsm6dsx: check return value from st_lsm6dsx_sensor_set_enable
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>
2020-01-13 21:41:43 +00:00
..
bmi160 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
inv_mpu6050 First set of new device support, features and cleanups for IIO in the 5.6 cycle 2020-01-10 10:44:00 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: check return value from st_lsm6dsx_sensor_set_enable 2020-01-13 21:41:43 +00:00
adis16400.c iio: adis: Remove startup_delay 2020-01-12 11:34:13 +00:00
adis16460.c iio: adis: Introduce timeouts structure 2020-01-12 11:34:12 +00:00
adis16480.c iio: adis: Introduce timeouts structure 2020-01-12 11:34:12 +00:00
adis_buffer.c iio: imu: adis: rename txrx_lock -> state_lock 2019-11-23 11:53:10 +00:00
adis_trigger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 149 2019-05-30 11:25:18 -07:00
adis.c iio: adis: Introduce timeouts structure 2020-01-12 11:34:12 +00: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
fxos8700.h 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