diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-11-10 09:59:30 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-11-10 16:24:27 +0100 |
commit | 275ebe2b8fcab4ba4a774e6ee1e3e28d495cff3e (patch) | |
tree | b5dc25bd43390fd1319e166d063cedca12f39b9d /drivers/rtc/rtc-max6900.c | |
parent | 9a06da2ecc92a81e969bd8c3768f63b63cb02e80 (diff) |
rtc: at91rm9200: stop calculating yday in at91_rtc_readalarm
Calculating yday in the read_alarm callback is useless as this value is
never used later. Also, it was buggy anyway because at the time this is
done, tm_year is always 0 as the alarm register doesn't hold the year.
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-max6900.c')
0 files changed, 0 insertions, 0 deletions