Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thermal_monitor: fix negative loop bounds issue
unsigned integers trip and trip_count should be signed since thermaldInterface.getTripCountForZone(zone) can return a -ve. Fixes CoverityScan CID 150269: "CID 150269 (intel#1 of 1): Negative loop bound (NEGATIVE_RETURNS) negative_returns: Using unsigned variable trip_count in a loop exit condition." Signed-off-by: Colin Ian King <[email protected]>
- Loading branch information