Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use __arraycount
details: https://anonhg.NetBSD.org/src/rev/570ceaa56798
branches: trunk
changeset: 765890:570ceaa56798
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 09 07:17:02 2011 +0000
description:
Use __arraycount
diffstat:
sys/dev/usb/usb_mem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 71938a81d6dd -r 570ceaa56798 sys/dev/usb/usb_mem.c
--- a/sys/dev/usb/usb_mem.c Thu Jun 09 05:26:01 2011 +0000
+++ b/sys/dev/usb/usb_mem.c Thu Jun 09 07:17:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_mem.c,v 1.46 2011/03/20 17:38:11 tsutsui Exp $ */
+/* $NetBSD: usb_mem.c,v 1.47 2011/06/09 07:17:02 matt Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.46 2011/03/20 17:38:11 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.47 2011/06/09 07:17:02 matt Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -146,7 +146,7 @@
p->size = size;
p->align = align;
error = bus_dmamem_alloc(tag, p->size, align, 0,
- p->segs, sizeof(p->segs)/sizeof(p->segs[0]),
+ p->segs, __arraycount(p->segs),
&p->nsegs, BUS_DMA_NOWAIT);
if (error)
goto free0;
Home |
Main Index |
Thread Index |
Old Index