Source-Changes-HG archive

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

[src/trunk]: src/sys/coda remove unused code.



details:   https://anonhg.NetBSD.org/src/rev/b5a149f06fc2
branches:  trunk
changeset: 790563:b5a149f06fc2
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 17 20:55:30 2013 +0000

description:
remove unused code.

diffstat:

 sys/coda/coda_vnops.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (40 lines):

diff -r d19ccf4e28aa -r b5a149f06fc2 sys/coda/coda_vnops.c
--- a/sys/coda/coda_vnops.c     Thu Oct 17 20:54:24 2013 +0000
+++ b/sys/coda/coda_vnops.c     Thu Oct 17 20:55:30 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vnops.c,v 1.90 2012/08/02 16:06:58 christos Exp $ */
+/*     $NetBSD: coda_vnops.c,v 1.91 2013/10/17 20:55:30 christos Exp $ */
 
 /*
  *
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.90 2012/08/02 16:06:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.91 2013/10/17 20:55:30 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -897,7 +897,6 @@
     const char *nm = cnp->cn_nameptr;
     int len = cnp->cn_namelen;
     int flags = cnp->cn_flags;
-    int isdot;
     CodaFid VFid;
     int        vtype;
     int error = 0;
@@ -937,13 +936,6 @@
     }
 
     /*
-     * XXX Check for DOT lookups, and short circuit all the caches,
-     * just doing an extra vref.  (venus guarantees that lookup of
-     * . returns self.)
-     */
-    isdot = (len == 1 && nm[0] == '.');
-
-    /*
      * Try to resolve the lookup in the minicache.  If that fails, ask
      * venus to do the lookup.  XXX The interaction between vnode
      * locking and any locking that coda does is not clear.



Home | Main Index | Thread Index | Old Index