aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorColin Ian King2016-11-09 23:12:31 +0000
committerJonathan Cameron2016-11-12 14:38:38 +0000
commit6c02e33facff34b95b6d67a182b9a0a0b51fabf8 (patch)
treeac540785f828d3e2b3d6cc7b5d57f319b15284ff /.gitignore
parent0d8391f3d60f0b544951b4014f433b4c068da293 (diff)
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: 974e6f02e27e ("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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions