Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb When emulating UHF_PORT_POWER for the internal h...



details:   https://anonhg.NetBSD.org/src/rev/a2c103e89a7b
branches:  trunk
changeset: 485708:a2c103e89a7b
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed May 03 18:14:49 2000 +0000

description:
When emulating UHF_PORT_POWER for the internal hub, make sure to initialize
the status return value.

diffstat:

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

diffs (17 lines):

diff -r 20d6bb580ebc -r a2c103e89a7b sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Wed May 03 17:12:16 2000 +0000
+++ b/sys/dev/usb/uhci.c        Wed May 03 18:14:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.113 2000/04/27 15:26:48 augustss Exp $      */
+/*     $NetBSD: uhci.c,v 1.114 2000/05/03 18:14:49 mycroft Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -3118,6 +3118,7 @@
                        break;
                case UHF_PORT_POWER:
                        /* Pretend we turned on power */
+                       err = 0;
                        goto ret;
                case UHF_C_PORT_CONNECTION:
                case UHF_C_PORT_ENABLE:



Home | Main Index | Thread Index | Old Index