linux/drivers/iio
Colin Ian King 6c02e33fac iio: cros_ec_sensors_core: fix unsigned compared less than zero on status
status is a u8 hence the check if status is less than zero has no effect.
Fix this by replacing status with int ret so the less than zero compare
will correctly detect errors.

Issue found with static analysis with CoverityScan, CID 1375919

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Fixes: 974e6f02e2 ("iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub")
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-11-12 14:38:38 +00:00
..
accel iio: accel: st_accel: add support to lng2dm 2016-11-01 18:50:02 +00:00
adc iio:adc: ad7766: testing the wrong variable in probe 2016-11-12 14:35:21 +00:00
amplifiers
buffer
chemical iio:chemical:atlas-ph-sensor: Fix use of 32 bit int to hold 16 bit big endian value 2016-10-23 22:18:27 +01:00
common iio: cros_ec_sensors_core: fix unsigned compared less than zero on status 2016-11-12 14:38:38 +00:00
counter
dac iio: dac: mcp4725: fix odd_ptr_err.cocci warnings 2016-10-23 19:34:27 +01:00
dummy
frequency
gyro iio: gyro: mpu3050: add I2C dependency 2016-11-08 20:29:33 +00:00
health
humidity iio: si7020: Add devicetree support and trivial bindings 2016-11-01 18:49:53 +00:00
imu
light iio: light: ltr501: claim direct mode during raw writes 2016-10-23 19:34:08 +01:00
magnetometer
orientation
potentiometer
potentiostat
pressure First round of IIO new device support, features and cleanups for the 4.10 cycle. 2016-10-24 11:34:22 +02:00
proximity iio: proximity: pulsedlight-lidar-lite-v2: cleanup power management 2016-10-23 19:34:26 +01:00
temperature Second round of new device support, cleanups and fixes for IIO in the 4.10 cycle 2016-11-07 09:14:03 +01:00
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile