From f6f94ac7fc51dc63d8fea269f988347c12414b0a Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 10 Nov 2003 00:20:52 +0000 Subject: MFNetBSD: date: 2003/10/18 04:50:35; author: simonb Remove assigned-to but otherwise unused variables. Remove unreachable break after return statements. --- sys/dev/usb/ehci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/ehci.c') 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) -- cgit v1.1