Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/19ed32114efa
branches:  trunk
changeset: 790056:19ed32114efa
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 15:07:06 2013 +0000

description:
Remove unused variable

diffstat:

 sys/dev/usb/uep.c        |  7 +++----
 sys/ufs/ufs/ufs_lookup.c |  6 ++----
 2 files changed, 5 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r 860c7cd37c88 -r 19ed32114efa sys/dev/usb/uep.c
--- a/sys/dev/usb/uep.c Sun Sep 15 15:06:04 2013 +0000
+++ b/sys/dev/usb/uep.c Sun Sep 15 15:07:06 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uep.c,v 1.18 2011/12/23 00:51:45 jakllsch Exp $        */
+/*     $NetBSD: uep.c,v 1.19 2013/09/15 15:07:06 martin Exp $  */
 
 /*
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
  *  eGalax USB touchpanel controller driver.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uep.c,v 1.18 2011/12/23 00:51:45 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uep.c,v 1.19 2013/09/15 15:07:06 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -134,7 +134,7 @@
        struct wsmousedev_attach_args a;
        char *devinfop;
        usbd_status err;
-       int i, found;
+       int i;
 
        sc->sc_dev = self;
 
@@ -179,7 +179,6 @@
        /* Find the interrupt endpoint */
        id = usbd_get_interface_descriptor(sc->sc_iface);
        sc->sc_iface_number = id->bInterfaceNumber;
-       found = 0;
 
        for (i = 0; i < id->bNumEndpoints; i++) {
                ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);
diff -r 860c7cd37c88 -r 19ed32114efa sys/ufs/ufs/ufs_lookup.c
--- a/sys/ufs/ufs/ufs_lookup.c  Sun Sep 15 15:06:04 2013 +0000
+++ b/sys/ufs/ufs/ufs_lookup.c  Sun Sep 15 15:07:06 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_lookup.c,v 1.124 2013/06/16 13:33:30 hannken Exp $ */
+/*     $NetBSD: ufs_lookup.c,v 1.125 2013/09/15 15:08:09 martin Exp $  */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.124 2013/06/16 13:33:30 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.125 2013/09/15 15:08:09 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ffs.h"
@@ -813,7 +813,6 @@
     struct componentname *cnp, struct buf *newdirbp)
 {
        kauth_cred_t cr;
-       struct lwp *l;
        int newentrysize;
        struct inode *dp;
        struct buf *bp;
@@ -830,7 +829,6 @@
 
        error = 0;
        cr = cnp->cn_cred;
-       l = curlwp;
 
        dp = VTOI(dvp);
        newentrysize = UFS_DIRSIZ(0, dirp, 0);



Home | Main Index | Thread Index | Old Index