From 1e8ff53804371267b3362f238995891d5f390e49 Mon Sep 17 00:00:00 2001 From: Robert Drehmel Date: Tue, 9 Oct 2001 16:06:28 +0000 Subject: Remove an unneeded variable declaration and statement. Approved by: jake --- sys/amd64/amd64/tsc.c | 2 -- sys/amd64/isa/clock.c | 2 -- sys/i386/i386/tsc.c | 2 -- sys/i386/isa/clock.c | 2 -- sys/isa/atrtc.c | 2 -- 5 files changed, 10 deletions(-) diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 1893b197009b..13e11a4315a2 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.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 + diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 1893b197009b..13e11a4315a2 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 + diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 1893b197009b..13e11a4315a2 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.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 + diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 1893b197009b..13e11a4315a2 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/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 + diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 1893b197009b..13e11a4315a2 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.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 + -- cgit v1.2.3