diff options
-rw-r--r-- | sys/dev/pcmcia/pcmcia_cis_quirks.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/pcmcia/pcmcia_cis_quirks.c b/sys/dev/pcmcia/pcmcia_cis_quirks.c index d3a408caa9d..9d4c22922e6 100644 --- a/sys/dev/pcmcia/pcmcia_cis_quirks.c +++ b/sys/dev/pcmcia/pcmcia_cis_quirks.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcmcia_cis_quirks.c,v 1.2 1999/08/14 05:47:41 fgsch Exp $ */ +/* $OpenBSD: pcmcia_cis_quirks.c,v 1.3 1999/10/06 13:35:47 fgsch Exp $ */ /* $NetBSD: pcmcia_cis_quirks.c,v 1.3 1998/12/29 09:00:28 marc Exp $ */ /* @@ -123,9 +123,6 @@ static struct pcmcia_cis_quirk pcmcia_cis_quirks[] = { { PCMCIA_VENDOR_INVALID, PCMCIA_PRODUCT_INVALID, PCMCIA_CIS_SVEC_LANCARD, &pcmcia_sveclancard_func0, &pcmcia_sveclancard_func0_cfe0 }, }; - -static int n_pcmcia_cis_quirks = - sizeof(pcmcia_cis_quirks)/sizeof(pcmcia_cis_quirks[0]); void pcmcia_check_cis_quirks(sc) struct pcmcia_softc *sc; @@ -138,7 +135,9 @@ void pcmcia_check_cis_quirks(sc) pf = NULL; pf_last = NULL; - for (i=0; i<n_pcmcia_cis_quirks; i++) { + + for (i = 0; i < sizeof(pcmcia_cis_quirks)/sizeof(pcmcia_cis_quirks[0]); + i++) { if ((sc->card.manufacturer == pcmcia_cis_quirks[i].manufacturer) && (sc->card.product == pcmcia_cis_quirks[i].product) && (((sc->card.manufacturer != PCMCIA_VENDOR_INVALID) && |