From e7b8e7a19a9b8d390ef91a79d68afc0864e03ca7 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Wed, 6 Oct 1999 13:35:48 +0000 Subject: Replace unnecessary static int with a define. --- sys/dev/pcmcia/pcmcia_cis_quirks.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sys/dev') 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; icard.manufacturer == pcmcia_cis_quirks[i].manufacturer) && (sc->card.product == pcmcia_cis_quirks[i].product) && (((sc->card.manufacturer != PCMCIA_VENDOR_INVALID) && -- cgit v1.2.3