linux_dsm_epyc7002/drivers/iio/common/cros_ec_sensors
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
..
cros_ec_sensors_core.c iio: cros_ec_sensors_core: fix unsigned compared less than zero on status 2016-11-12 14:38:38 +00:00
cros_ec_sensors_core.h
cros_ec_sensors.c platform/chrome: cros_ec_dev - Register cros-ec sensors 2016-10-25 18:20:32 +01:00
Kconfig iio:cros_ec_sensors: Swap from a select to a depends in Kconfig 2016-11-01 17:59:23 +00:00
Makefile iio: cros_ec_sensors: add ChromeOS EC Contiguous Sensors driver 2016-10-25 18:20:23 +01:00