Commit 482514b4 authored by Russell King's avatar Russell King

[ARM] Fix build error in rtctime.c

Oops, it broke.  Glue the bits back together, replacing yrs with
tm->tm_year + 1900.

I will not merge untested changes into Linus' tree.
I will not merge untested changes into Linus' tree.
I will not merge untested changes into Linus' tree.
I will not ...
Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
parent deecd433
...@@ -101,7 +101,7 @@ int rtc_valid_tm(struct rtc_time *tm) ...@@ -101,7 +101,7 @@ int rtc_valid_tm(struct rtc_time *tm)
if (tm->tm_year < 70 || if (tm->tm_year < 70 ||
tm->tm_mon >= 12 || tm->tm_mon >= 12 ||
tm->tm_mday < 1 || tm->tm_mday < 1 ||
tm->tm_mday > month_days(tm->tm_mon, yrs) || tm->tm_mday > month_days(tm->tm_mon, tm->tm_year + 1900) ||
tm->tm_hour >= 24 || tm->tm_hour >= 24 ||
tm->tm_min >= 60 || tm->tm_min >= 60 ||
tm->tm_sec >= 60) tm->tm_sec >= 60)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment