summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ehci.c7
-rw-r--r--sys/dev/usb/ohci.c4
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 152d569..aa7532a 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,5 +1,9 @@
/* $NetBSD: ehci.c,v 1.46 2003/03/09 19:51:13 augustss Exp $ */
+/* Also ported from NetBSD:
+ * $NetBSD: ehci.c,v 1.50 2003/10/18 04:50:35 simonb Exp $
+ */
+
/*
* TODO
* hold off explorations by companion controllers until ehci has started.
@@ -584,7 +588,6 @@ void
ehci_pcd(ehci_softc_t *sc, usbd_xfer_handle xfer)
{
usbd_pipe_handle pipe;
- struct ehci_pipe *epipe;
u_char *p;
int i, m;
@@ -594,7 +597,6 @@ ehci_pcd(ehci_softc_t *sc, usbd_xfer_handle xfer)
}
pipe = xfer->pipe;
- epipe = (struct ehci_pipe *)pipe;
p = KERNADDR(&xfer->dmabuf, 0);
m = min(sc->sc_noport, xfer->length * 8 - 1);
@@ -882,7 +884,6 @@ ehci_activate(device_ptr_t self, enum devact act)
switch (act) {
case DVACT_ACTIVATE:
return (EOPNOTSUPP);
- break;
case DVACT_DEACTIVATE:
if (sc->sc_child != NULL)
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 4375d02..54a09f0 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -4,6 +4,7 @@
* $NetBSD: ohci.c,v 1.140 2003/05/13 04:42:00 gson Exp $
* $NetBSD: ohci.c,v 1.141 2003/09/10 20:08:29 mycroft Exp $
* $NetBSD: ohci.c,v 1.142 2003/10/11 03:04:26 toshii Exp $
+ * $NetBSD: ohci.c,v 1.143 2003/10/18 04:50:35 simonb Exp $
*/
#include <sys/cdefs.h>
@@ -365,7 +366,6 @@ ohci_activate(device_ptr_t self, enum devact act)
switch (act) {
case DVACT_ACTIVATE:
return (EOPNOTSUPP);
- break;
case DVACT_DEACTIVATE:
if (sc->sc_child != NULL)
@@ -1581,7 +1581,6 @@ void
ohci_rhsc(ohci_softc_t *sc, usbd_xfer_handle xfer)
{
usbd_pipe_handle pipe;
- struct ohci_pipe *opipe;
u_char *p;
int i, m;
int hstatus;
@@ -1596,7 +1595,6 @@ ohci_rhsc(ohci_softc_t *sc, usbd_xfer_handle xfer)
}
pipe = xfer->pipe;
- opipe = (struct ohci_pipe *)pipe;
p = KERNADDR(&xfer->dmabuf, 0);
m = min(sc->sc_noport, xfer->length * 8 - 1);
OpenPOWER on IntegriCloud