diff options
author | 2008-11-23 12:45:11 +0000 | |
---|---|---|
committer | 2008-11-23 12:45:11 +0000 | |
commit | 1510a807588dbd5d49ae5009893bc598408ece5a (patch) | |
tree | 73499107d17e91fc7cda98422a16b2d27dbc1823 /sys/dev/pci/mpi_pci.c | |
parent | this adds: (diff) | |
download | wireguard-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.c | 5 |
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 |