Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx/dev Remove the "comfound < 2" bogosity.



details:   https://anonhg.NetBSD.org/src/rev/5f771517d577
branches:  trunk
changeset: 535298:5f771517d577
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Aug 14 12:31:38 2002 +0000

description:
Remove the "comfound < 2" bogosity.

diffstat:

 sys/arch/powerpc/ibm4xx/dev/com_opb.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 1dec0325726c -r 5f771517d577 sys/arch/powerpc/ibm4xx/dev/com_opb.c
--- a/sys/arch/powerpc/ibm4xx/dev/com_opb.c     Wed Aug 14 12:30:22 2002 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/com_opb.c     Wed Aug 14 12:31:38 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com_opb.c,v 1.2 2002/08/14 12:29:50 simonb Exp $ */
+/* $NetBSD: com_opb.c,v 1.3 2002/08/14 12:31:38 simonb Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -59,8 +59,6 @@
        sizeof(struct com_opb_softc), com_opb_probe, com_opb_attach
 };
 
-int comfound = 0;
-
 int
 com_opb_probe(struct device *parent, struct cfdata *cf, void *aux)
 {
@@ -70,7 +68,7 @@
        if (strcmp(oaa->opb_name, cf->cf_driver->cd_name) != 0)
                return 0;
 
-       return (comfound < 2);
+       return (1);
 }
 
 void
@@ -87,8 +85,6 @@
        /* UART is clocked externally @ 11.0592MHz == COM_FREQ*6 */
        sc->sc_frequency = COM_FREQ * 6;
 
-       comfound++;
-
        /* XXX console check */
        /* XXX map */
 



Home | Main Index | Thread Index | Old Index