summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2019-12-03 22:22:36 +0000
committerjmcneill <jmcneill@NetBSD.org>2019-12-03 22:22:36 +0000
commit64f8fb9bda69d76ce4cc7fc2e1cdfff4abf92d78 (patch)
tree83591c85863a9fc93a8bbc53e2b05558a7d27352 /sys
parent4e0ae9e9c73fd6ac408ed44213b948dc3a2eff36 (diff)
build fix
Diffstat (limited to 'sys')
-rw-r--r--sys/external/bsd/dwc2/dwc2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/external/bsd/dwc2/dwc2.c b/sys/external/bsd/dwc2/dwc2.c
index 26d7c610de9..ff1ba8a30f9 100644
--- a/sys/external/bsd/dwc2/dwc2.c
+++ b/sys/external/bsd/dwc2/dwc2.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.64 2019/12/03 14:38:48 skrll Exp $ */
+/* $NetBSD: dwc2.c,v 1.65 2019/12/03 22:22:36 jmcneill Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.64 2019/12/03 14:38:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.65 2019/12/03 22:22:36 jmcneill Exp $");
#include "opt_usb.h"
@@ -1020,7 +1020,8 @@ dwc2_device_start(struct usbd_xfer *xfer)
" mps=%d dir %s\n", xfer, xfer->ux_nframes, xfer->ux_flags, addr,
epnum, mps, dir == UT_READ ? "in" :"out");
- for (len = i = 0; i < xfer->ux_nframes; i++)
+ len = 0;
+ for (int i = 0; i < xfer->ux_nframes; i++)
len += xfer->ux_frlengths[i];
} else {
DPRINTFN(3, "xfer=%p len=%d flags=%d addr=%d endpt=%d,"