Fix an XXX comment by answering 'no'. OS X does not set the day-of-week

counter on SMU-based systems, which causes FreeBSD to reject the RTC time
when used in a dual-boot environment. Since we don't use the day-of-week
counter anyway, solve this by just not checking that it matches.

MFC after:	3 weeks
This commit is contained in:
Nathan Whitehorn 2010-10-17 17:31:49 +00:00
parent 17f3c8f1e3
commit c8593f7c4d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213986

View File

@ -164,10 +164,6 @@ clock_ct_to_ts(struct clocktime *ct, struct timespec *ts)
days += days_in_month(year, i);
days += (ct->day - 1);
/* XXX Dow sanity check. Dow is not used, so should we check it? */
if (ct->dow != -1 && ct->dow != day_of_week(days))
return (EINVAL);
/* Add hours, minutes, seconds. */
secs = ((days * 24 + ct->hour) * 60 + ct->min) * 60 + ct->sec;