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 unused variables



details:   https://anonhg.NetBSD.org/src/rev/ae3bd948d187
branches:  trunk
changeset: 789910:ae3bd948d187
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 12 19:53:41 2013 +0000

description:
Remove unused variables

diffstat:

 sys/dev/usb/ehci.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (51 lines):

diff -r 182053f9919f -r ae3bd948d187 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Thu Sep 12 19:52:50 2013 +0000
+++ b/sys/dev/usb/ehci.c        Thu Sep 12 19:53:41 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.211 2013/09/07 19:53:24 matt Exp $ */
+/*     $NetBSD: ehci.c,v 1.212 2013/09/12 19:53:41 martin Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.211 2013/09/07 19:53:24 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.212 2013/09/12 19:53:41 martin Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -706,7 +706,6 @@
 {
        ehci_softc_t *sc = addr;
        usbd_xfer_handle xfer;
-       usbd_pipe_handle pipe;
        u_char *p;
        int i, m;
 
@@ -718,8 +717,6 @@
                goto done;
        }
 
-       pipe = xfer->pipe;
-
        p = KERNADDR(&xfer->dmabuf, 0);
        m = min(sc->sc_noport, xfer->length * 8 - 1);
        memset(p, 0, xfer->length);
@@ -3934,7 +3931,6 @@
 ehci_device_isoc_start(usbd_xfer_handle xfer)
 {
        struct ehci_pipe *epipe;
-       usbd_device_handle dev;
        ehci_softc_t *sc;
        struct ehci_xfer *exfer;
        ehci_soft_itd_t *itd, *prev, *start, *stop;
@@ -3950,7 +3946,6 @@
        total_length = 0;
        exfer = (struct ehci_xfer *) xfer;
        sc = xfer->pipe->device->bus->hci_private;
-       dev = xfer->pipe->device;
        epipe = (struct ehci_pipe *)xfer->pipe;
 
        /*



Home | Main Index | Thread Index | Old Index