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 variable



details:   https://anonhg.NetBSD.org/src/rev/d63ec953d927
branches:  trunk
changeset: 790058:d63ec953d927
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 15:33:47 2013 +0000

description:
Remove unused variable

diffstat:

 sys/dev/usb/uhub.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r eb00279f4704 -r d63ec953d927 sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c        Sun Sep 15 15:32:18 2013 +0000
+++ b/sys/dev/usb/uhub.c        Sun Sep 15 15:33:47 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhub.c,v 1.123 2013/06/25 15:37:17 jakllsch Exp $      */
+/*     $NetBSD: uhub.c,v 1.124 2013/09/15 15:33:47 martin Exp $        */
 /*     $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $       */
 
 /*
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.123 2013/06/25 15:37:17 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.124 2013/09/15 15:33:47 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -641,13 +641,13 @@
        struct uhub_softc *sc = device_private(self);
        struct usbd_hub *hub = sc->sc_hub->hub;
        usbd_device_handle dev;
-       int port, err;
+       int port;
 
        for (port = 0; port < hub->hubdesc.bNbrPorts; port++) {
                dev = hub->ports[port].device;
                if (dev == NULL)
                        continue;
-               err = usbd_reattach_device(sc->sc_dev, dev, port, locators);
+               usbd_reattach_device(sc->sc_dev, dev, port, locators);
        }
        return 0;
 }



Home | Main Index | Thread Index | Old Index