summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-10-31 20:07:00 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-10-31 20:07:00 +0000
commit1755f213a8f42f118b38213e4cddd61e1c2444a4 (patch)
tree816602462989ed1613f6534f687df750d378d93d /sys/dev/usb
parentf68a3b5c2c56c3f21f659573346495ad988c7bec (diff)
Pipe don't have states. Kill an useless & commented out chunk of code.
No functional change.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usbdi.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 6c428740838..5bdf826dd73 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.c,v 1.62 2013/10/31 10:12:19 mpi Exp $ */
+/* $OpenBSD: usbdi.c,v 1.63 2013/10/31 20:06:59 mpi Exp $ */
/* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -583,13 +583,7 @@ usbd_clear_endpoint_stall(struct usbd_pipe *pipe)
USETW(req.wIndex, pipe->endpoint->edesc->bEndpointAddress);
USETW(req.wLength, 0);
err = usbd_do_request(dev, &req, 0);
-#if 0
-XXX should we do this?
- if (!err) {
- pipe->state = USBD_PIPE_ACTIVE;
- /* XXX activate pipe */
- }
-#endif
+
return (err);
}