summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-03 15:36:04 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-03 15:36:04 +0000
commit000aa3a35a0346024da8aeb1ddd117a714ab1a98 (patch)
treee30c1afbb9ad547a742ef2e358c4067139433873 /sys/dev/pci/if_em.c
parent445a93dfa951cfdb8d9253fd13836d6a25a4ac4b (diff)
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/if_em.c')
-rw-r--r--sys/dev/pci/if_em.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 2a2cdab9946..26ef0703739 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.250 2011/03/09 12:24:15 mpf Exp $ */
+/* $OpenBSD: if_em.c,v 1.251 2011/04/03 15:36:02 jasper Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -255,7 +255,7 @@ em_probe(struct device *parent, void *match, void *aux)
INIT_DEBUGOUT("em_probe: begin");
return (pci_matchbyid((struct pci_attach_args *)aux, em_devices,
- sizeof(em_devices)/sizeof(em_devices[0])));
+ nitems(em_devices)));
}
void