From 1c7b9e373b43952a0eac9b6785679e6ff34535b5 Mon Sep 17 00:00:00 2001 From: skrll Date: Sun, 17 Nov 2013 08:32:55 +0000 Subject: [PATCH] Remove unused variables. --- sys/arch/arm/footbridge/footbridge_com.c | 8 ++++---- sys/arch/arm/footbridge/isa/isa_machdep.c | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/sys/arch/arm/footbridge/footbridge_com.c b/sys/arch/arm/footbridge/footbridge_com.c index 82d33b27f14e..71bd5100361b 100644 --- a/sys/arch/arm/footbridge/footbridge_com.c +++ b/sys/arch/arm/footbridge/footbridge_com.c @@ -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 -__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 @@ fcomcngetc(dev_t dev) 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 --git a/sys/arch/arm/footbridge/isa/isa_machdep.c b/sys/arch/arm/footbridge/isa/isa_machdep.c index a61877424baf..70880b72cf14 100644 --- a/sys/arch/arm/footbridge/isa/isa_machdep.c +++ b/sys/arch/arm/footbridge/isa/isa_machdep.c @@ -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 -__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 @@ isa_intr_disestablish(isa_chipset_tag_t ic, void *arg) void isa_intr_init(void) { - static void *isa_ih; struct intrq *iq; int i; @@ -452,7 +451,7 @@ isa_intr_init(void) #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); }