Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev fixed a glitch that would trigger a warni...



details:   https://anonhg.NetBSD.org/src/rev/94d6c5d420c0
branches:  trunk
changeset: 582973:94d6c5d420c0
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Jul 13 01:42:06 2005 +0000

description:
fixed a glitch that would trigger a warning when compiled without tctrl.
Doesn't make much sense since tctrl is on the same chip but anyway.

diffstat:

 sys/arch/sparc/dev/ts102.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r ac39ecdc2879 -r 94d6c5d420c0 sys/arch/sparc/dev/ts102.c
--- a/sys/arch/sparc/dev/ts102.c        Tue Jul 12 23:21:54 2005 +0000
+++ b/sys/arch/sparc/dev/ts102.c        Wed Jul 13 01:42:06 2005 +0000
@@ -1,5 +1,5 @@
 /*     $OpenBSD: ts102.c,v 1.14 2005/01/27 17:03:23 millert Exp $      */
-/*     $NetBSD: ts102.c,v 1.2 2005/07/06 11:42:53 macallan Exp $ */
+/*     $NetBSD: ts102.c,v 1.3 2005/07/13 01:42:06 macallan Exp $ */
 /*
  * Copyright (c) 2003, 2004, Miodrag Vallat.
  *
@@ -757,16 +757,17 @@
 {
        struct tslot_softc *sc = v;
        struct tslot_data *td;
-       int s, status, i;
+       int s, status;
        unsigned int socket;
        TSPRINTF("Event kthread starts...\n");
-       
+#if NTCTRL > 0
+       int i;
+
        /* 
         * First-time setup of our LCD symbol. When a card is present at boot 
         * time we won't detect a change here and therefore the LCD symbol won't
         * light up.
         */
-#if NTCTRL > 0
        for (i = 0; i < TS102_NUM_SLOTS; i++) {
                td = &sc->sc_slot[i];
                status = TSLOT_READ(td, TS102_REG_CARD_A_STS);



Home | Main Index | Thread Index | Old Index