From: brad Date: Wed, 9 Jul 2008 02:47:03 +0000 (+0000) Subject: Simplify the match function a bit by just returning the result from X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a3a3d9469ba019ee24eb74eb372022e218fad9b1;p=openbsd 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@ --- 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 @@ -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