summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-10-06 13:35:48 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>1999-10-06 13:35:48 +0000
commite7b8e7a19a9b8d390ef91a79d68afc0864e03ca7 (patch)
tree88b70a4013c77c9eb215d6c13aa761c7bdea234a /sys/dev/pcmcia
parent036eba3581f0a86aecd591d931d341d45541f22e (diff)
Replace unnecessary static int with a define.
Diffstat (limited to 'sys/dev/pcmcia')
-rw-r--r--sys/dev/pcmcia/pcmcia_cis_quirks.c9
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) &&