summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-07-09 02:47:04 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-07-09 02:47:04 +0000
commit8ff3d429d38762cbcc8c3114cb6fe614006cce26 (patch)
tree41890402641a11fbf7930ae56c40323408a4a6a7 /sys/arch/i386
parent2684860eb5fa64129404339f5cf1e0231b54e76f (diff)
Simplify the match function a bit by just returning the result from
pci_matchbyid(). This is the only driver that will match against this hardware so it is not necessary to return a higher priority than what pci_matchbyid() returns. ok mbalmer@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/pci/auglx.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/i386/pci/auglx.c b/sys/arch/i386/pci/auglx.c
index 9260682ab6d..c42bcec981d 100644
--- a/sys/arch/i386/pci/auglx.c
+++ b/sys/arch/i386/pci/auglx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auglx.c,v 1.1 2008/06/25 15:27:34 mbalmer Exp $ */
+/* $OpenBSD: auglx.c,v 1.2 2008/07/09 02:47:03 brad Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -317,11 +317,8 @@ const struct pci_matchid auglx_devices[] = {
int
auglx_match(struct device *parent, void *match, void *aux)
{
- if (pci_matchbyid((struct pci_attach_args *)aux, auglx_devices,
- sizeof(auglx_devices) / sizeof(auglx_devices[0])))
- return 2;
-
- return 0;
+ return (pci_matchbyid((struct pci_attach_args *)aux, auglx_devices,
+ sizeof(auglx_devices) / sizeof(auglx_devices[0])));
}
void