Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/acorn32/podulebus fix unused variable
details: https://anonhg.NetBSD.org/src/rev/c46a0b934d15
branches: trunk
changeset: 326175:c46a0b934d15
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 21 19:46:45 2014 +0000
description:
fix unused variable
diffstat:
sys/arch/acorn32/podulebus/cosc.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (40 lines):
diff -r 376b5ef3ed63 -r c46a0b934d15 sys/arch/acorn32/podulebus/cosc.c
--- a/sys/arch/acorn32/podulebus/cosc.c Tue Jan 21 19:31:57 2014 +0000
+++ b/sys/arch/acorn32/podulebus/cosc.c Tue Jan 21 19:46:45 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cosc.c,v 1.18 2012/10/27 17:17:23 chs Exp $ */
+/* $NetBSD: cosc.c,v 1.19 2014/01/21 19:46:45 christos Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cosc.c,v 1.18 2012/10/27 17:17:23 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cosc.c,v 1.19 2014/01/21 19:46:45 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -290,17 +290,16 @@
void
cosc_led(struct esc_softc *sc, int mode)
{
- cosc_regmap_p rp;
-
- rp = (cosc_regmap_p)sc->sc_esc;
-
if (mode) {
sc->sc_led_status++;
} else {
if (sc->sc_led_status)
sc->sc_led_status--;
}
-/* *rp->led = (sc->sc_led_status?1:0);*/
+#if 0
+ cosc_regmap_p rp = (cosc_regmap_p)sc->sc_esc;
+ *rp->led = c->sc_led_status ? 1 : 0;
+#endif
}
Home |
Main Index |
Thread Index |
Old Index