6c02e33fac
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
cros_ec_sensors.c | ||
cros_ec_sensors_core.c | ||
cros_ec_sensors_core.h |