From ffe599486c025672f669ff44ab074d57500fbf92 Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 3 May 2000 18:14:49 +0000 Subject: When emulating UHF_PORT_POWER for the internal hub, make sure to initialize the status return value. --- sys/dev/usb/uhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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: -- cgit