diff options
author | Robert Drehmel <robert@FreeBSD.org> | 2001-10-09 16:06:28 +0000 |
---|---|---|
committer | Robert Drehmel <robert@FreeBSD.org> | 2001-10-09 16:06:28 +0000 |
commit | 1e8ff53804371267b3362f238995891d5f390e49 (patch) | |
tree | baff7a29ce2ea7db0d19d4cb53284116fc0d65af | |
parent | 21828a36762a6c89a5a44971aabfd495eb0fc5e3 (diff) |
Remove an unneeded variable declaration and statement.
Approved by: jake
Notes
Notes:
svn path=/head/; revision=84721
-rw-r--r-- | sys/amd64/amd64/tsc.c | 2 | ||||
-rw-r--r-- | sys/amd64/isa/clock.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/tsc.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/clock.c | 2 | ||||
-rw-r--r-- | sys/isa/atrtc.c | 2 |
5 files changed, 0 insertions, 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 + |