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 Return success when clearing port reset.



details:   https://anonhg.NetBSD.org/src/rev/3647cf97c972
branches:  nick-nhusb
changeset: 334103:3647cf97c972
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Feb 01 08:16:31 2015 +0000

description:
Return success when clearing port reset.

diffstat:

 sys/dev/usb/uhci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7fb953cf8fb1 -r 3647cf97c972 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sun Feb 01 06:30:29 2015 +0000
+++ b/sys/dev/usb/uhci.c        Sun Feb 01 08:16:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.264.4.15 2014/12/06 08:27:23 skrll Exp $    */
+/*     $NetBSD: uhci.c,v 1.264.4.16 2015/02/01 08:16:31 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.15 2014/12/06 08:27:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.16 2015/02/01 08:16:31 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3502,7 +3502,7 @@
                        break;
                case UHF_C_PORT_RESET:
                        sc->sc_isreset = 0;
-                       return -1;
+                       break;
                case UHF_PORT_CONNECTION:
                case UHF_PORT_OVER_CURRENT:
                case UHF_PORT_POWER:



Home | Main Index | Thread Index | Old Index