diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:40:18 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-11-19 18:40:18 +0000 |
commit | 6de774d6cba7e3cd5ab65ca8bd33d4e854d185ac (patch) | |
tree | e947e412c38cb1b45d34a5c858acb00564f371df /sys/dev/pci/cz.c | |
parent | f8eb256c65fe796edfbbb90ae32c5502ca585795 (diff) |
Add a simplistic table driven lookup routine and use it where appropriate.
Diffstat (limited to 'sys/dev/pci/cz.c')
-rw-r--r-- | sys/dev/pci/cz.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c index 3643c48cfda..abac3bf2ac6 100644 --- a/sys/dev/pci/cz.c +++ b/sys/dev/pci/cz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cz.c,v 1.5 2002/01/30 20:45:34 nordin Exp $ */ +/* $OpenBSD: cz.c,v 1.6 2002/11/19 18:40:17 jason Exp $ */ /* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */ /*- @@ -275,13 +275,9 @@ cz_match(parent, match, aux) { struct pci_attach_args *pa = aux; - if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_CYCLADES) { - switch (PCI_PRODUCT(pa->pa_id)) { - case PCI_PRODUCT_CYCLADES_CYCLOMZ_2: - return (1); - } - } - + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_CYCLADES && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_CYCLADES_CYCLOMZ_2) + return (1); return (0); } |