summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/mpi_pci.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2008-11-23 12:45:11 +0000
committerdlg <dlg@openbsd.org>2008-11-23 12:45:11 +0000
commit1510a807588dbd5d49ae5009893bc598408ece5a (patch)
tree73499107d17e91fc7cda98422a16b2d27dbc1823 /sys/dev/pci/mpi_pci.c
parentthis adds: (diff)
downloadwireguard-openbsd-1510a807588dbd5d49ae5009893bc598408ece5a.tar.xz
wireguard-openbsd-1510a807588dbd5d49ae5009893bc598408ece5a.zip
sizeofa is now nitems in param.h, so dont declare my own in mpi.c it was
unused there anyway. use nitems in mpi_pci_match.
Diffstat (limited to 'sys/dev/pci/mpi_pci.c')
-rw-r--r--sys/dev/pci/mpi_pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/mpi_pci.c b/sys/dev/pci/mpi_pci.c
index 768863cf1d6..844f7ee63c9 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.22 2008/10/28 13:44:33 marco Exp $ */
+/* $OpenBSD: mpi_pci.c,v 1.23 2008/11/23 12:45:11 dlg Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -92,8 +92,7 @@ static const struct pci_matchid mpi_devices[] = {
int
mpi_pci_match(struct device *parent, void *match, void *aux)
{
- return (pci_matchbyid((struct pci_attach_args *)aux, mpi_devices,
- sizeof(mpi_devices) / sizeof(mpi_devices[0])));
+ return (pci_matchbyid(aux, mpi_devices, nitems(mpi_devices)));
}
void