From 78c2103e348bab755d77a2998fcdb9cf31da4348 Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 18 Oct 2003 04:50:35 +0000 Subject: [PATCH] Remove assigned-to but otherwise unused variables. Remove unreachable break after return statements. --- sys/dev/usb/ehci.c | 7 ++----- sys/dev/usb/ohci.c | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index e5cf0ded87b4..753a4af298f7 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ehci.c,v 1.49 2003/10/13 00:05:36 enami Exp $ */ +/* $NetBSD: ehci.c,v 1.50 2003/10/18 04:50:35 simonb Exp $ */ /* * TODO @@ -52,7 +52,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.49 2003/10/13 00:05:36 enami Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.50 2003/10/18 04:50:35 simonb Exp $"); #include "ohci.h" #include "uhci.h" @@ -565,7 +565,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; @@ -575,7 +574,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); @@ -863,7 +861,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 6c58d47b7ecf..12ed81c85469 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ /* @@ -46,7 +46,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.142 2003/10/11 03:04:26 toshii Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.143 2003/10/18 04:50:35 simonb Exp $"); #include #include @@ -352,7 +352,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) @@ -1529,7 +1528,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; @@ -1544,7 +1542,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);