diff options
author | Niklas Söderlund <[email protected]> | 2020-05-14 17:25:05 +0200 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2020-05-22 21:09:59 +0200 |
commit | b03628b73564cf54e05b7611e22d9886a8822877 (patch) | |
tree | e6ec4ad011f9524cdc0f2cd4cc8e779bc4dccf7e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1ab20c0e53fa2167357bd90b7f7f7019cad9daaa (diff) |
thermal: rcar_thermal: Clean up rcar_thermal_update_temp()
Moving the ctemp variable out of the private data structure made it
possible to clean up rcar_thermal_update_temp(). Initialize the local
ctemp to the error code to return if the reading fails and just return
it at the end of the function.
It's OK to change the datatype of old, new and ctemp to int as all
values are ANDed with CTEMP (0x3f) before being stored. While at it
change the datatype of the loop variable 'i' to to unsigned int.
Suggested-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Niklas Söderlund <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions