From 6de774d6cba7e3cd5ab65ca8bd33d4e854d185ac Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 19 Nov 2002 18:40:18 +0000 Subject: Add a simplistic table driven lookup routine and use it where appropriate. --- sys/dev/pci/if_tx.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sys/dev/pci/if_tx.c') diff --git a/sys/dev/pci/if_tx.c b/sys/dev/pci/if_tx.c index f766b3ae2d5..508d8403c62 100644 --- a/sys/dev/pci/if_tx.c +++ b/sys/dev/pci/if_tx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tx.c,v 1.24 2002/11/14 07:35:18 kjc Exp $ */ +/* $OpenBSD: if_tx.c,v 1.25 2002/11/19 18:40:17 jason Exp $ */ /* $FreeBSD: src/sys/pci/if_tx.c,v 1.45 2001/02/07 20:11:02 semenu Exp $ */ /*- @@ -205,13 +205,11 @@ epic_openbsd_probe( void *aux ) { struct pci_attach_args *pa = aux; - if( PCI_VENDOR(pa->pa_id) != SMC_VENDORID ) - return 0; - - if( PCI_PRODUCT(pa->pa_id) == SMC_DEVICEID_83C170 ) - return 1; - return 0; + if (PCI_VENDOR(pa->pa_id) == SMC_VENDORID && + PCI_PRODUCT(pa->pa_id) == SMC_DEVICEID_83C170) + return (1); + return (0); } void -- cgit v1.2.3