summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2000-05-03 18:14:49 +0000
committermycroft <mycroft@NetBSD.org>2000-05-03 18:14:49 +0000
commitffe599486c025672f669ff44ab074d57500fbf92 (patch)
treeee8381963827e1984fc3329123a908b0694b37d8 /sys/dev/usb
parentcca383c2047c5b8a05abb438aefa8f9c14da9004 (diff)
When emulating UHF_PORT_POWER for the internal hub, make sure to initialize
the status return value.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uhci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 72544eb68c4..6daff5c14c7 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -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 @@ uhci_root_ctrl_start(xfer)
break;
case UHF_PORT_POWER:
/* Pretend we turned on power */
+ err = 0;
goto ret;
case UHF_C_PORT_CONNECTION:
case UHF_C_PORT_ENABLE: