Module Name: src
Committed By: macallan
Date: Tue Jun 3 12:15:00 UTC 2014
Modified Files:
src/sys/arch/sgimips/dev: int.c
Log Message:
actually get rid of actually unused variables, still works on my Indy
thanks mrg
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/sgimips/dev/int.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sgimips/dev/int.c
diff -u src/sys/arch/sgimips/dev/int.c:1.26 src/sys/arch/sgimips/dev/int.c:1.27
--- src/sys/arch/sgimips/dev/int.c:1.26 Mon Jun 2 15:07:24 2014
+++ src/sys/arch/sgimips/dev/int.c Tue Jun 3 12:15:00 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: int.c,v 1.26 2014/06/02 15:07:24 macallan Exp $ */
+/* $NetBSD: int.c,v 1.27 2014/06/03 12:15:00 macallan Exp $ */
/*
* Copyright (c) 2009 Stephen M. Rumble
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: int.c,v 1.26 2014/06/02 15:07:24 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: int.c,v 1.27 2014/06/03 12:15:00 macallan Exp $");
#define __INTR_PRIVATE
#include "opt_cputype.h"
@@ -479,7 +479,7 @@ int2_cal_timer(void)
int s;
int roundtime;
int sampletime;
- int __unused(startmsb), __unused(lsb), msb;
+ int msb;
unsigned long startctr, endctr;
/*
@@ -489,7 +489,6 @@ int2_cal_timer(void)
*/
roundtime = (1000000 / hz) / 2;
sampletime = (1000000 / hz) + 0xff;
- startmsb = (sampletime >> 8);
s = splhigh();
@@ -503,7 +502,7 @@ int2_cal_timer(void)
/* Wait for the MSB to count down to zero */
do {
bus_space_write_1(iot, ioh, INT2_TIMER_CONTROL, TIMER_SEL2);
- lsb = bus_space_read_1(iot, ioh, INT2_TIMER_2) & 0xff;
+ (void)bus_space_read_1(iot, ioh, INT2_TIMER_2);
msb = bus_space_read_1(iot, ioh, INT2_TIMER_2) & 0xff;
endctr = mips3_cp0_count_read();