summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ueagle.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-03-22 16:31:19 +0000
committerderaadt <deraadt@openbsd.org>2011-03-22 16:31:19 +0000
commitcb9a03d4c05dac32b017d73d5fe28b6826e566cc (patch)
tree5f8becd90b0ebbdfc0b85ef9bc887491d30b6728 /sys/dev/usb/ueagle.c
parentsome small tweaks from Michael W. Bombardieri; (diff)
downloadwireguard-openbsd-cb9a03d4c05dac32b017d73d5fe28b6826e566cc.tar.xz
wireguard-openbsd-cb9a03d4c05dac32b017d73d5fe28b6826e566cc.zip
silently clear the endpoint when the device has failed; ok jakemsr
Diffstat (limited to 'sys/dev/usb/ueagle.c')
-rw-r--r--sys/dev/usb/ueagle.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/usb/ueagle.c b/sys/dev/usb/ueagle.c
index c9a3f524686..592a5166869 100644
--- a/sys/dev/usb/ueagle.c
+++ b/sys/dev/usb/ueagle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ueagle.c,v 1.32 2011/01/25 20:03:36 jakemsr Exp $ */
+/* $OpenBSD: ueagle.c,v 1.33 2011/03/22 16:31:19 deraadt Exp $ */
/*-
* Copyright (c) 2003-2006
@@ -696,12 +696,10 @@ ueagle_intr(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
if (status == USBD_NOT_STARTED || status == USBD_CANCELLED)
return;
- printf("%s: abnormal interrupt status: %s\n",
- sc->sc_dev.dv_xname, usbd_errstr(status));
-
- if (status == USBD_STALLED)
- usbd_clear_endpoint_stall_async(sc->pipeh_intr);
+ DPRINTF(("%s: abnormal interrupt status: %s\n",
+ sc->sc_dev.dv_xname, usbd_errstr(status)));
+ usbd_clear_endpoint_stall_async(sc->pipeh_intr);
return;
}