Remove assigned-to but otherwise unused variables.
Remove unreachable break after return statements.
This commit is contained in:
parent
513b330566
commit
78c2103e34
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user