diff options
| author | Uwe Kleine-König <[email protected]> | 2025-06-13 14:24:05 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2025-07-23 21:48:06 +0000 |
| commit | ae48d3542783cdb826774a751084aa1c536029d5 (patch) | |
| tree | 9eec2d3f7349bf6891275b02207bb42b029790cd /rust/helpers/platform.c | |
| parent | dt-bindings: rtc: amlogic,a4-rtc: Add compatible string for C3 (diff) | |
| download | kernel-ae48d3542783cdb826774a751084aa1c536029d5.tar.gz kernel-ae48d3542783cdb826774a751084aa1c536029d5.zip | |
rtc: Optimize calculations in rtc_time64_to_tm()
Recently (in commit 7df4cfef8b35 ("rtc: Make rtc_time64_to_tm() support
dates before 1970")) the function rtc_time64_to_tm() was repaired for
times before 1970. This introduced two if blocks. Cassio Neri pointed
out that to be not neccessary and suggested an adaption that allows to
drop the two branch points again.
This is implemented here.
Also adapt the reference to the theoretical paper to link to the final
published article instead of the preprint on Cassio's request.
Suggested-by: Cassio Neri <[email protected]>
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
