Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/dwc2 build fix
details: https://anonhg.NetBSD.org/src/rev/dcde80983d59
branches: trunk
changeset: 846903:dcde80983d59
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Dec 03 22:22:36 2019 +0000
description:
build fix
diffstat:
sys/external/bsd/dwc2/dwc2.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 33f945cdc108 -r dcde80983d59 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Tue Dec 03 22:10:56 2019 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Tue Dec 03 22:22:36 2019 +0000
@@ -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 @@
" 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,"
Home |
Main Index |
Thread Index |
Old Index