Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/footbridge Remove unused variables.



details:   https://anonhg.NetBSD.org/src/rev/5ed2e0e1cdce
branches:  trunk
changeset: 791415:5ed2e0e1cdce
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Nov 17 08:32:55 2013 +0000

description:
Remove unused variables.

diffstat:

 sys/arch/arm/footbridge/footbridge_com.c  |  8 ++++----
 sys/arch/arm/footbridge/isa/isa_machdep.c |  7 +++----
 2 files changed, 7 insertions(+), 8 deletions(-)

diffs (68 lines):

diff -r 3a282f57fc04 -r 5ed2e0e1cdce sys/arch/arm/footbridge/footbridge_com.c
--- a/sys/arch/arm/footbridge/footbridge_com.c  Sun Nov 17 08:21:01 2013 +0000
+++ b/sys/arch/arm/footbridge/footbridge_com.c  Sun Nov 17 08:32:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_com.c,v 1.35 2012/10/10 21:53:09 skrll Exp $        */
+/*     $NetBSD: footbridge_com.c,v 1.36 2013/11/17 08:32:55 skrll Exp $        */
 
 /*-
  * Copyright (c) 1997 Mark Brinicombe
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: footbridge_com.c,v 1.35 2012/10/10 21:53:09 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: footbridge_com.c,v 1.36 2013/11/17 08:32:55 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ddbparam.h"
@@ -742,12 +742,12 @@
        int s = splserial();
        bus_space_tag_t iot = fcomconstag;
        bus_space_handle_t ioh = fcomconsioh;
-       u_char stat, c;
+       u_char c;
 
        while ((bus_space_read_4(iot, ioh, UART_FLAGS) & UART_RX_FULL) != 0)
                ;
        c = bus_space_read_4(iot, ioh, UART_DATA);
-       stat = bus_space_read_4(iot, ioh, UART_RX_STAT);
+       (void)bus_space_read_4(iot, ioh, UART_RX_STAT);
        (void)splx(s);
 #if defined(DDB) && DDB_KEYCODE > 0
                /*
diff -r 3a282f57fc04 -r 5ed2e0e1cdce sys/arch/arm/footbridge/isa/isa_machdep.c
--- a/sys/arch/arm/footbridge/isa/isa_machdep.c Sun Nov 17 08:21:01 2013 +0000
+++ b/sys/arch/arm/footbridge/isa/isa_machdep.c Sun Nov 17 08:32:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isa_machdep.c,v 1.19 2012/10/27 17:17:37 chs Exp $     */
+/*     $NetBSD: isa_machdep.c,v 1.20 2013/11/17 08:32:55 skrll Exp $   */
 
 /*-
  * Copyright (c) 1996-1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.19 2012/10/27 17:17:37 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.20 2013/11/17 08:32:55 skrll Exp $");
 
 #include "opt_irqstats.h"
 
@@ -429,7 +429,6 @@
 void
 isa_intr_init(void)
 {
-       static void *isa_ih;
        struct intrq *iq;
        int i;
  
@@ -452,7 +451,7 @@
 #ifndef ISA_FOOTBRIDGE_IRQ 
 #warning Before using isa with footbridge you must define ISA_FOOTBRIDGE_IRQ
 #endif
-       isa_ih = footbridge_intr_claim(ISA_FOOTBRIDGE_IRQ, IPL_BIO, "isabus",
+       footbridge_intr_claim(ISA_FOOTBRIDGE_IRQ, IPL_BIO, "isabus",
            isa_irqdispatch, NULL);
        
 }



Home | Main Index | Thread Index | Old Index