summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-05 19:54:37 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-04-05 19:54:37 +0000
commitb8b4ecf359b69b2f384dabb79edbf67040b9cf73 (patch)
treec0bc74d091e943b420aa575b7cb990372bb71432 /sys/dev/sbus
parent115b944ccca42da53ff06c03476cac943041002e (diff)
- use nitems() no binary change on amd64
"reads OK" claudio@
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/cs4231.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sbus/cs4231.c b/sys/dev/sbus/cs4231.c
index 358b6deeec5..cac922a1e11 100644
--- a/sys/dev/sbus/cs4231.c
+++ b/sys/dev/sbus/cs4231.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cs4231.c,v 1.30 2010/07/15 03:43:11 jakemsr Exp $ */
+/* $OpenBSD: cs4231.c,v 1.31 2011/04/05 19:54:35 jasper Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -1439,7 +1439,7 @@ cs4231_alloc(void *vsc, int direction, size_t size, int pool, int flags)
p->size = size;
if (bus_dmamem_alloc(dmat, size, 64*1024, 0, p->segs,
- sizeof(p->segs)/sizeof(p->segs[0]), &p->nsegs,
+ nitems(p->segs), &p->nsegs,
BUS_DMA_NOWAIT) != 0)
goto fail1;