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 iio: add resource managed triggered buffer init helpers 2016-09-04 15:42:46 +01:00
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 iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8 2016-10-01 17:06:21 +01:00
dac iio: dac: mcp4725: fix odd_ptr_err.cocci warnings 2016-10-23 19:34:27 +01:00
dummy iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
frequency
gyro iio: gyro: mpu3050: add I2C dependency 2016-11-08 20:29:33 +00:00
health First round of IIO new device support, features and cleanups for the 4.8 cycle. 2016-06-09 09:15:58 -07:00
humidity iio: si7020: Add devicetree support and trivial bindings 2016-11-01 18:49:53 +00:00
imu iio: bmi160_core: Fix sparse warning due to incorrect type in assignment 2016-10-23 19:33:44 +01:00
light iio: light: ltr501: claim direct mode during raw writes 2016-10-23 19:34:08 +01:00
magnetometer iio: magnetometer: ak8974: small endianness fixes 2016-10-03 21:30:00 +01:00
orientation
potentiometer iio: potentiometer: Fix typo in Kconfig 2016-07-03 12:40:01 +01:00
potentiostat iio: potentiostat: add LMP91000 support 2016-09-27 20:33:03 +01:00
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:trigger: Experimental kthread tight loop trigger (thread only) 2016-06-03 13:18:44 +01:00
iio_core_trigger.h
iio_core.h iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
industrialio-buffer.c iio: Use kmalloc_array() in iio_scan_mask_set() 2016-09-24 16:35:24 +01:00
industrialio-configfs.c
industrialio-core.c iio: Implement counter channel type and info constants 2016-10-01 17:06:02 +01:00
industrialio-event.c iio: iio_push_event(): Don't crash if the event interface is not registered 2016-09-10 16:40:44 +01:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio:trigger: Add helper function to verify that a trigger belongs to the same device 2016-09-27 20:32:55 +01:00
industrialio-triggered-event.c
inkern.c iio: inkern: add iio_read_channel_offset helper 2016-09-27 20:33:02 +01:00
Kconfig iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8 2016-10-01 17:06:21 +01:00
Makefile iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8 2016-10-01 17:06:21 +01:00