Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Change error reporting in port reset function.
details: https://anonhg.NetBSD.org/src/rev/38633daedf69
branches: trunk
changeset: 485175:38633daedf69
user: augustss <augustss%NetBSD.org@localhost>
date: Fri Apr 21 15:58:55 2000 +0000
description:
Change error reporting in port reset function.
diffstat:
sys/dev/usb/usb_subr.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r a467e8b13f76 -r 38633daedf69 sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c Fri Apr 21 15:56:35 2000 +0000
+++ b/sys/dev/usb/usb_subr.c Fri Apr 21 15:58:55 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_subr.c,v 1.72 2000/04/14 14:13:56 augustss Exp $ */
+/* $NetBSD: usb_subr.c,v 1.73 2000/04/21 15:58:55 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */
/*
@@ -351,10 +351,8 @@
return (err);
}
} while ((UGETW(ps->wPortChange) & UPS_C_PORT_RESET) == 0 && --n > 0);
- if (n == 0) {
- printf("usbd_reset_port: timeout\n");
- return (USBD_IOERROR);
- }
+ if (n == 0)
+ return (USBD_TIMEOUT);
err = usbd_clear_port_feature(dev, port, UHF_C_PORT_RESET);
#ifdef USB_DEBUG
if (err)
Home |
Main Index |
Thread Index |
Old Index