Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mvme fix unused



details:   https://anonhg.NetBSD.org/src/rev/767af44acba1
branches:  trunk
changeset: 328070:767af44acba1
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 25 15:52:16 2014 +0000

description:
fix unused

diffstat:

 sys/dev/mvme/clmpcc_pcctwo.c |  6 ++++--
 sys/dev/mvme/if_ie_mvme.c    |  7 ++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

diffs (64 lines):

diff -r 499ae8687b38 -r 767af44acba1 sys/dev/mvme/clmpcc_pcctwo.c
--- a/sys/dev/mvme/clmpcc_pcctwo.c      Tue Mar 25 15:51:58 2014 +0000
+++ b/sys/dev/mvme/clmpcc_pcctwo.c      Tue Mar 25 15:52:16 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clmpcc_pcctwo.c,v 1.19 2012/10/27 17:18:27 chs Exp $   */
+/*     $NetBSD: clmpcc_pcctwo.c,v 1.20 2014/03/25 15:52:16 christos Exp $      */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.19 2012/10/27 17:18:27 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clmpcc_pcctwo.c,v 1.20 2014/03/25 15:52:16 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -168,6 +168,7 @@
        }
 
        foo = pcc2_reg_read(sys_pcctwo, offset);
+       __USE(foo);
 }
 
 /*
@@ -210,6 +211,7 @@
                PCCTWO_REG_OFF]);
 
        foo = bus_space_read_1(&_mainbus_space_tag, bush, offset);
+       __USE(foo);
 #else
 #error Need consiack hook
 #endif
diff -r 499ae8687b38 -r 767af44acba1 sys/dev/mvme/if_ie_mvme.c
--- a/sys/dev/mvme/if_ie_mvme.c Tue Mar 25 15:51:58 2014 +0000
+++ b/sys/dev/mvme/if_ie_mvme.c Tue Mar 25 15:52:16 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ie_mvme.c,v 1.19 2011/06/05 16:22:00 tsutsui Exp $  */
+/*     $NetBSD: if_ie_mvme.c,v 1.20 2014/03/25 15:52:33 christos Exp $ */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ie_mvme.c,v 1.19 2011/06/05 16:22:00 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_mvme.c,v 1.20 2014/03/25 15:52:33 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -130,11 +130,8 @@
 static int
 ie_intrhook(struct ie_softc *sc, int when)
 {
-       struct ie_pcctwo_softc *ps;
        u_int8_t reg;
 
-       ps = (struct ie_pcctwo_softc *) sc;
-
        if (when == INTR_EXIT) {
                reg = pcc2_reg_read(sys_pcctwo, PCC2REG_ETH_ICSR);
                reg |= PCCTWO_ICR_ICLR;



Home | Main Index | Thread Index | Old Index