diff options
author | joe <joe@FreeBSD.org> | 2003-11-10 00:20:52 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2003-11-10 00:20:52 +0000 |
commit | f6f94ac7fc51dc63d8fea269f988347c12414b0a (patch) | |
tree | 4cfde1e5011916f395ef03d09f65f9f152c73445 /sys/dev | |
parent | 28ba6b05d32a91f488425f5b1a9ba61223a48739 (diff) | |
download | FreeBSD-src-f6f94ac7fc51dc63d8fea269f988347c12414b0a.zip FreeBSD-src-f6f94ac7fc51dc63d8fea269f988347c12414b0a.tar.gz |
MFNetBSD:
date: 2003/10/18 04:50:35; author: simonb
Remove assigned-to but otherwise unused variables.
Remove unreachable break after return statements.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/ehci.c | 7 | ||||
-rw-r--r-- | sys/dev/usb/ohci.c | 4 |
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); |