From c8593f7c4d878fcb20125dd0c473cbf3408ec085 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Sun, 17 Oct 2010 17:31:49 +0000 Subject: [PATCH] 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 --- sys/kern/subr_clock.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c index ffc70afa353c..28e0dad4d53c 100644 --- a/sys/kern/subr_clock.c +++ b/sys/kern/subr_clock.c @@ -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;