summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2010-02-03 14:08:42 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2010-02-03 14:08:42 +0000
commit3bd186e7a8d7d2140c73492547dd726ad3c2820b (patch)
tree71c9baf609611159ac3b315203a167c526a9343b /sys
parente690e5b7b9995c75ae761a288413efa02d4ab961 (diff)
Use nitems.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_lii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_lii.c b/sys/dev/pci/if_lii.c
index 6ed7bc34fe2..4eedee45f5c 100644
--- a/sys/dev/pci/if_lii.c
+++ b/sys/dev/pci/if_lii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_lii.c,v 1.24 2009/11/24 02:29:11 jsing Exp $ */
+/* $OpenBSD: if_lii.c,v 1.25 2010/02/03 14:08:41 jsing Exp $ */
/*
* Copyright (c) 2007 The NetBSD Foundation.
@@ -197,7 +197,7 @@ int
lii_match(struct device *parent, void *match, void *aux)
{
return (pci_matchbyid((struct pci_attach_args *)aux, lii_devices,
- sizeof(lii_devices)/sizeof(lii_devices[0])));
+ nitems(lii_devices)));
}
void