Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Remove an unused variable, silence a few unused ...
details: https://anonhg.NetBSD.org/src/rev/f151264cca2f
branches: trunk
changeset: 790012:f151264cca2f
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 09:16:21 2013 +0000
description:
Remove an unused variable, silence a few unused warnings
diffstat:
sys/dev/usb/ohci.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (57 lines):
diff -r 3cab63f59a4d -r f151264cca2f sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Sun Sep 15 08:11:33 2013 +0000
+++ b/sys/dev/usb/ohci.c Sun Sep 15 09:16:21 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.242 2013/09/14 13:13:59 joerg Exp $ */
+/* $NetBSD: ohci.c,v 1.243 2013/09/15 09:16:21 martin Exp $ */
/*
* Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.242 2013/09/14 13:13:59 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.243 2013/09/15 09:16:21 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -635,7 +635,7 @@
ohci_soft_ed_t *sed, *psed;
usbd_status err;
int i;
- u_int32_t s, ctl, rwc, ival, hcr, fm, per, rev, desca, descb;
+ u_int32_t s, ctl, rwc, ival, hcr, fm, per, rev, desca /*, descb */;
DPRINTF(("ohci_init: start\n"));
aprint_normal_dev(sc->sc_dev, "");
@@ -763,7 +763,7 @@
rwc = ctl & OHCI_RWC;
fm = OREAD4(sc, OHCI_FM_INTERVAL);
desca = OREAD4(sc, OHCI_RH_DESCRIPTOR_A);
- descb = OREAD4(sc, OHCI_RH_DESCRIPTOR_B);
+ /* descb = OREAD4(sc, OHCI_RH_DESCRIPTOR_B); */
/* Determine in what context we are running. */
if (ctl & OHCI_IR) {
@@ -1570,10 +1570,9 @@
void
ohci_rhsc(ohci_softc_t *sc, usbd_xfer_handle xfer)
{
- usbd_pipe_handle pipe;
u_char *p;
int i, m;
- int hstatus;
+ int hstatus __unused;
KASSERT(mutex_owned(&sc->sc_lock));
@@ -1586,8 +1585,6 @@
return;
}
- pipe = xfer->pipe;
-
p = KERNADDR(&xfer->dmabuf, 0);
m = min(sc->sc_noport, xfer->length * 8 - 1);
memset(p, 0, xfer->length);
Home |
Main Index |
Thread Index |
Old Index