Module Name: src
Committed By: jmcneill
Date: Tue Dec 3 22:22:36 UTC 2019
Modified Files:
src/sys/external/bsd/dwc2: dwc2.c
Log Message:
build fix
To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/external/bsd/dwc2/dwc2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/dwc2/dwc2.c
diff -u src/sys/external/bsd/dwc2/dwc2.c:1.64 src/sys/external/bsd/dwc2/dwc2.c:1.65
--- src/sys/external/bsd/dwc2/dwc2.c:1.64 Tue Dec 3 14:38:48 2019
+++ src/sys/external/bsd/dwc2/dwc2.c Tue Dec 3 22:22:36 2019
@@ -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,"