diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-06-04 13:52:31 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-06-04 13:52:31 +0000 |
commit | a7456a023e0431270ff43f03e72ebd7e97e78313 (patch) | |
tree | 9d5bd6091f5514f6ef68b2cffeb4f398fcc7508d /sys/dev/usb/uhci.c | |
parent | 966d13cda24e384f22b8ea507d778ed2e72d223a (diff) |
Clearing the data toggle bit only makes sense for endpoints that use it,
since this function is optional get rid of the no-op ones.
ok ratchov@
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r-- | sys/dev/usb/uhci.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index fe1dc3979f6..51706c7ff2e 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhci.c,v 1.123 2014/06/04 12:28:21 mpi Exp $ */ +/* $OpenBSD: uhci.c,v 1.124 2014/06/04 13:52:30 mpi Exp $ */ /* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ @@ -191,7 +191,6 @@ usbd_status uhci_device_setintr(struct uhci_softc *sc, struct uhci_pipe *pipe, int ival); void uhci_device_clear_toggle(struct usbd_pipe *pipe); -void uhci_noop(struct usbd_pipe *pipe); __inline__ struct uhci_soft_qh *uhci_find_prev_qh(struct uhci_soft_qh *, struct uhci_soft_qh *); @@ -262,7 +261,6 @@ struct usbd_pipe_methods uhci_root_ctrl_methods = { .start = uhci_root_ctrl_start, .abort = uhci_root_ctrl_abort, .close = uhci_root_ctrl_close, - .cleartoggle = uhci_noop, .done = uhci_root_ctrl_done, }; @@ -271,7 +269,6 @@ struct usbd_pipe_methods uhci_root_intr_methods = { .start = uhci_root_intr_start, .abort = uhci_root_intr_abort, .close = uhci_root_intr_close, - .cleartoggle = uhci_noop, .done = uhci_root_intr_done, }; @@ -280,7 +277,6 @@ struct usbd_pipe_methods uhci_device_ctrl_methods = { .start = uhci_device_ctrl_start, .abort = uhci_device_ctrl_abort, .close = uhci_device_ctrl_close, - .cleartoggle = uhci_noop, .done = uhci_device_ctrl_done, }; @@ -307,7 +303,6 @@ struct usbd_pipe_methods uhci_device_isoc_methods = { .start = uhci_device_isoc_start, .abort = uhci_device_isoc_abort, .close = uhci_device_isoc_close, - .cleartoggle = uhci_noop, .done = uhci_device_isoc_done, }; @@ -1631,11 +1626,6 @@ uhci_device_clear_toggle(struct usbd_pipe *pipe) upipe->nexttoggle = 0; } -void -uhci_noop(struct usbd_pipe *pipe) -{ -} - usbd_status uhci_device_bulk_transfer(struct usbd_xfer *xfer) { |