diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-06-29 22:55:27 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-06-29 22:55:27 +0000 |
commit | 93211c85eafcbee9cac7959f447c14a2c5f05f61 (patch) | |
tree | dd592b429df4d93d214dba23a836eeea41566938 /sys/dev/pci | |
parent | 910faa267a21360973c5eb15a3e89212aebf3056 (diff) |
simplify the PCI match routine a bit.
ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/mpi_pci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/mpi_pci.c b/sys/dev/pci/mpi_pci.c index da04d3fe687..be8084027bb 100644 --- a/sys/dev/pci/mpi_pci.c +++ b/sys/dev/pci/mpi_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi_pci.c,v 1.9 2006/06/29 22:18:14 dlg Exp $ */ +/* $OpenBSD: mpi_pci.c,v 1.10 2006/06/29 22:55:26 brad Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -77,9 +77,7 @@ static const struct pci_matchid mpi_devices[] = { int mpi_pci_match(struct device *parent, void *match, void *aux) { - struct pci_attach_args *pa = aux; - - return (pci_matchbyid(pa, mpi_devices, + return (pci_matchbyid((struct pci_attach_args *)aux, mpi_devices, sizeof(mpi_devices) / sizeof(mpi_devices[0]))); } |