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 A small code simplification



details:   https://anonhg.NetBSD.org/src/rev/1021f9bacccd
branches:  trunk
changeset: 790303:1021f9bacccd
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 02 22:48:51 2013 +0000

description:
A small code simplification

diffstat:

 sys/external/bsd/dwc2/dwc2.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b29d3ddad1fd -r 1021f9bacccd sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c      Wed Oct 02 22:45:10 2013 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c      Wed Oct 02 22:48:51 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2.c,v 1.8 2013/10/02 22:45:10 skrll Exp $   */
+/*     $NetBSD: dwc2.c,v 1.9 2013/10/02 22:48:51 skrll Exp $   */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.8 2013/10/02 22:45:10 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.9 2013/10/02 22:48:51 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1336,7 +1336,7 @@
        if (xfertype == UE_INTERRUPT)
                dwc2_urb->interval = dpipe->pipe.interval;
        else if (xfertype == UE_ISOCHRONOUS)
-               dwc2_urb->interval = dpipe->pipe.endpoint->edesc->bInterval;
+               dwc2_urb->interval = ed->bInterval;
 
        /* XXXNH bring down from callers?? */
 //     mutex_enter(&sc->sc_lock);



Home | Main Index | Thread Index | Old Index