Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nick-nhusb]: src/sys/dev/usb Correct the return value from roothub_ctrl_...



details:   https://anonhg.NetBSD.org/src/rev/4b872923ff5d
branches:  nick-nhusb
changeset: 334100:4b872923ff5d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jan 31 22:28:15 2015 +0000

description:
Correct the return value from roothub_ctrl_start - previously it was
always USBD_IN_PROGRESS

diffstat:

 sys/dev/usb/usbroothub.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ee04adfa4f2c -r 4b872923ff5d sys/dev/usb/usbroothub.c
--- a/sys/dev/usb/usbroothub.c  Fri Jan 02 08:52:14 2015 +0000
+++ b/sys/dev/usb/usbroothub.c  Sat Jan 31 22:28:15 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbroothub.c,v 1.1.2.3 2014/12/05 09:37:50 skrll Exp $ */
+/* $NetBSD: usbroothub.c,v 1.1.2.4 2015/01/31 22:28:15 skrll Exp $ */
 
 /*-
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -463,7 +463,7 @@
        usb_transfer_complete(xfer);
        mutex_exit(bus->ub_lock);
 
-       return USBD_IN_PROGRESS;
+       return err;
 }
 
 /* Abort a root control request. */



Home | Main Index | Thread Index | Old Index