summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2003-10-18 04:50:35 +0000
committersimonb <simonb@NetBSD.org>2003-10-18 04:50:35 +0000
commit78c2103e348bab755d77a2998fcdb9cf31da4348 (patch)
treec1669d615128ce45987a9c1254af717b488563db /sys/dev/usb
parent513b3305669b327c8a609ee01040fb7d05005031 (diff)
Remove assigned-to but otherwise unused variables.
Remove unreachable break after return statements.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ehci.c7
-rw-r--r--sys/dev/usb/ohci.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index e5cf0ded87b..753a4af298f 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 <sys/cdefs.h>
-__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 6c58d47b7ec..12ed81c8546 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 <sys/cdefs.h>
-__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 <sys/param.h>
#include <sys/systm.h>
@@ -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);