summaryrefslogtreecommitdiff
path: root/sys/dev/onewire/owctr.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-07-08 07:19:55 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-07-08 07:19:55 +0000
commitf67aa7224b80cdcc71d1144ca25784f2b2adf384 (patch)
treee7e3e309abec7e05189f2f1500f15b00f01d5ca4 /sys/dev/onewire/owctr.c
parent8867471bd73ef5ff1d1aaeeecad6c15c2738a93b (diff)
- use nitems() where applicable
ok grange@
Diffstat (limited to 'sys/dev/onewire/owctr.c')
-rw-r--r--sys/dev/onewire/owctr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/onewire/owctr.c b/sys/dev/onewire/owctr.c
index 3d57cffa022..5f0beb963c7 100644
--- a/sys/dev/onewire/owctr.c
+++ b/sys/dev/onewire/owctr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: owctr.c,v 1.2 2010/07/07 16:15:53 deraadt Exp $ */
+/* $OpenBSD: owctr.c,v 1.3 2010/07/08 07:19:54 jasper Exp $ */
/*
* Copyright (c) 2010 John L. Scarfone <john@scarfone.net>
*
@@ -84,8 +84,7 @@ static const struct onewire_matchfam owctr_fams[] = {
int
owctr_match(struct device *parent, void *match, void *aux)
{
- return (onewire_matchbyfam(aux, owctr_fams,
- sizeof(owctr_fams) /sizeof(owctr_fams[0])));
+ return (onewire_matchbyfam(aux, owctr_fams, nitems(owctr_fams)));
}
void