summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2008-11-23 14:19:41 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2008-11-23 14:19:41 +0000
commit9693b8a710bd472b909931d83b8550c222a77fc8 (patch)
tree8dd5d9d881385dff06562e31049abb73ad36f63a /sys/dev
parent44978b1eda5b4db2c2ad45c9ec3269d18100063e (diff)
Use the new and shiny nitems().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/mbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mbg.c b/sys/dev/pci/mbg.c
index 1b0d1a116c9..6f266193188 100644
--- a/sys/dev/pci/mbg.c
+++ b/sys/dev/pci/mbg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbg.c,v 1.26 2008/11/22 15:05:24 mbalmer Exp $ */
+/* $OpenBSD: mbg.c,v 1.27 2008/11/23 14:19:40 mbalmer Exp $ */
/*
* Copyright (c) 2006, 2007 Marc Balmer <mbalmer@openbsd.org>
@@ -168,7 +168,7 @@ int
mbg_probe(struct device *parent, void *match, void *aux)
{
return pci_matchbyid((struct pci_attach_args *)aux, mbg_devices,
- sizeof(mbg_devices) / sizeof(mbg_devices[0]));
+ nitems(mbg_devices));
}
void