Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast Remove an unused variable
details: https://anonhg.NetBSD.org/src/rev/0006104d05d4
branches: trunk
changeset: 327687:0006104d05d4
user: martin <martin%NetBSD.org@localhost>
date: Fri Mar 14 08:50:08 2014 +0000
description:
Remove an unused variable
diffstat:
sys/arch/dreamcast/dev/gdrom.c | 8 ++++----
sys/arch/dreamcast/dreamcast/machdep.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r 79e135716018 -r 0006104d05d4 sys/arch/dreamcast/dev/gdrom.c
--- a/sys/arch/dreamcast/dev/gdrom.c Fri Mar 14 05:03:19 2014 +0000
+++ b/sys/arch/dreamcast/dev/gdrom.c Fri Mar 14 08:50:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gdrom.c,v 1.35 2012/07/27 07:42:26 abs Exp $ */
+/* $NetBSD: gdrom.c,v 1.36 2014/03/14 08:50:08 martin Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.35 2012/07/27 07:42:26 abs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdrom.c,v 1.36 2014/03/14 08:50:08 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -395,7 +395,7 @@
gdromattach(device_t parent, device_t self, void *aux)
{
struct gdrom_softc *sc;
- uint32_t p, x;
+ uint32_t p;
sc = device_private(self);
sc->sc_dev = self;
@@ -413,7 +413,7 @@
*/
*((volatile uint32_t *)0xa05f74e4) = 0x1fffff;
for (p = 0; p < 0x200000 / 4; p++)
- x = ((volatile uint32_t *)0xa0000000)[p];
+ (void)((volatile uint32_t *)0xa0000000)[p];
printf(": %s\n", sysasic_intr_string(SYSASIC_IRL9));
sysasic_intr_establish(SYSASIC_EVENT_GDROM, IPL_BIO, SYSASIC_IRL9,
diff -r 79e135716018 -r 0006104d05d4 sys/arch/dreamcast/dreamcast/machdep.c
--- a/sys/arch/dreamcast/dreamcast/machdep.c Fri Mar 14 05:03:19 2014 +0000
+++ b/sys/arch/dreamcast/dreamcast/machdep.c Fri Mar 14 08:50:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.43 2012/06/11 16:27:08 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.44 2014/03/14 08:51:06 martin Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2002 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2012/06/11 16:27:08 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2014/03/14 08:51:06 martin Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -270,7 +270,7 @@
intc_intr(int ssr, int spc, int ssp)
{
struct intc_intrhand *ih;
- int s, evtcode;
+ int evtcode;
curcpu()->ci_data.cpu_nintr++;
@@ -282,7 +282,7 @@
* On entry, all interrrupts are disabled, and exception is enabled.
* Enable higher level interrupt here.
*/
- s = _cpu_intr_resume(ih->ih_level);
+ _cpu_intr_resume(ih->ih_level);
if (evtcode == SH_INTEVT_TMU0_TUNI0) { /* hardclock */
struct clockframe cf;
Home |
Main Index |
Thread Index |
Old Index