Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Cosmetic change; use IRQUNK instead of -1 always.



details:   https://anonhg.NetBSD.org/src/rev/605fd6379ab2
branches:  trunk
changeset: 481693:605fd6379ab2
user:      enami <enami%NetBSD.org@localhost>
date:      Thu Feb 03 23:03:11 2000 +0000

description:
Cosmetic change; use IRQUNK instead of -1 always.

diffstat:

 sys/dev/isa/i82365_isasubr.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 6c0b7db4ad65 -r 605fd6379ab2 sys/dev/isa/i82365_isasubr.c
--- a/sys/dev/isa/i82365_isasubr.c      Thu Feb 03 22:44:11 2000 +0000
+++ b/sys/dev/isa/i82365_isasubr.c      Thu Feb 03 23:03:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82365_isasubr.c,v 1.7 2000/02/02 14:44:09 enami Exp $ */
+/*     $NetBSD: i82365_isasubr.c,v 1.8 2000/02/03 23:03:11 enami Exp $ */
 
 #define        PCICISADEBUG
 
@@ -313,22 +313,22 @@
        } else if (chipmask == 0 ||
            isa_intr_alloc(ic, chipmask, IST_EDGE, &sc->irq)) {
                printf("%s: no available irq", sc->dev.dv_xname);
-               sc->irq = -1;
+               sc->irq = IRQUNK;
        } else if ((chipmask & ~(1 << sc->irq)) == 0 && chipuniq == 0) {
                printf("%s: can\'t share irq with cards", sc->dev.dv_xname);
-               sc->irq = -1;
+               sc->irq = IRQUNK;
        }
-       if (sc->irq != -1) {
+       if (sc->irq != IRQUNK) {
                printf("%s: using irq %d\n", sc->dev.dv_xname, sc->irq);
                sc->ih = isa_intr_establish(ic, sc->irq, IST_EDGE, IPL_TTY,
                    pcic_intr, sc);
                if (sc->ih == NULL) {
                        printf("%s: can't establish interrupt",
                            sc->dev.dv_xname);
-                       sc->irq = -1;
+                       sc->irq = IRQUNK;
                }
        }
-       if (sc->irq == -1)
+       if (sc->irq == IRQUNK)
                printf(", will poll for card insertion and removal\n");
 
        pcic_attach_sockets_finish(sc);



Home | Main Index | Thread Index | Old Index