diff options
author | robert <robert@FreeBSD.org> | 2001-10-09 16:06:28 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2001-10-09 16:06:28 +0000 |
commit | 04f13118b95260f799ed3860156ae657385cae90 (patch) | |
tree | baff7a29ce2ea7db0d19d4cb53284116fc0d65af /sys/amd64/isa | |
parent | c74b3b689d9be84f8b43dd092e6aeba8358ef892 (diff) | |
download | FreeBSD-src-04f13118b95260f799ed3860156ae657385cae90.zip FreeBSD-src-04f13118b95260f799ed3860156ae657385cae90.tar.gz |
Remove an unneeded variable declaration and statement.
Approved by: jake
Diffstat (limited to 'sys/amd64/isa')
-rw-r--r-- | sys/amd64/isa/clock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 1893b19..13e11a4 100644 --- a/sys/amd64/isa/clock.c +++ b/sys/amd64/isa/clock.c @@ -858,7 +858,6 @@ void inittodr(time_t base) { unsigned long sec, days; - int yd; int year, month; int y, m, s; struct timespec ts; @@ -901,7 +900,6 @@ inittodr(time_t base) if ((month > 2) && LEAPYEAR(year)) days ++; days += readrtc(RTC_DAY) - 1; - yd = days; for (y = 1970; y < year; y++) days += DAYSPERYEAR + LEAPYEAR(y); sec = ((( days * 24 + |