mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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:
|
||
---|---|---|
.. | ||
cros_ec_sensors_core.c | ||
cros_ec_sensors_core.h | ||
cros_ec_sensors.c | ||
Kconfig | ||
Makefile |