diff options
author | Nathan Binkert <nate@cvs.openbsd.org> | 2001-10-05 00:55:41 +0000 |
---|---|---|
committer | Nathan Binkert <nate@cvs.openbsd.org> | 2001-10-05 00:55:41 +0000 |
commit | 6a344a31cf1a687d223bafdb05762f6414b4e9b5 (patch) | |
tree | 10f027e933df2a6497cdaab7b906ba248803d00f /sys/dev/pci | |
parent | 5260fe996d79bfd7c069512612ec9db4252839dd (diff) |
use positive logic for match
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_sk.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index 3bd3635d9e5..a5b0fa7fd89 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.17 2001/09/11 20:05:25 miod Exp $ */ +/* $OpenBSD: if_sk.c,v 1.18 2001/10/05 00:55:40 nate Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -761,13 +761,11 @@ skc_probe(parent, match, aux) { struct pci_attach_args *pa = aux; - if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_SCHNEIDERKOCH) - return (0); + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SCHNEIDERKOCH && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SCHNEIDERKOCH_GE) + return (1); - if (PCI_PRODUCT(pa->pa_id) != PCI_PRODUCT_SCHNEIDERKOCH_GE) - return (0); - - return (1); + return (0); } /* |