Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/dev actually get rid of actually unused var...



details:   https://anonhg.NetBSD.org/src/rev/37c6e9ea7dc1
branches:  trunk
changeset: 329668:37c6e9ea7dc1
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Jun 03 12:15:00 2014 +0000

description:
actually get rid of actually unused variables, still works on my Indy
thanks mrg

diffstat:

 sys/arch/sgimips/dev/int.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 02dbcb7d7c50 -r 37c6e9ea7dc1 sys/arch/sgimips/dev/int.c
--- a/sys/arch/sgimips/dev/int.c        Tue Jun 03 11:56:07 2014 +0000
+++ b/sys/arch/sgimips/dev/int.c        Tue Jun 03 12:15:00 2014 +0000
@@ -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 @@
        int s;
        int roundtime;
        int sampletime;
-       int __unused(startmsb), __unused(lsb), msb;
+       int msb;
        unsigned long startctr, endctr;
 
        /*
@@ -489,7 +489,6 @@
         */
        roundtime = (1000000 / hz) / 2;
        sampletime = (1000000 / hz) + 0xff;
-       startmsb = (sampletime >> 8);
 
        s = splhigh();
 
@@ -503,7 +502,7 @@
        /* 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();



Home | Main Index | Thread Index | Old Index