Source-Changes-HG archive

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

[src/trunk]: src/sys/fs remove unused code



details:   https://anonhg.NetBSD.org/src/rev/e80a867c3405
branches:  trunk
changeset: 790571:e80a867c3405
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 17 21:03:50 2013 +0000

description:
remove unused code

diffstat:

 sys/fs/ntfs/ntfs_vfsops.c |  8 +++-----
 sys/fs/union/union_subr.c |  9 ++-------
 2 files changed, 5 insertions(+), 12 deletions(-)

diffs (82 lines):

diff -r 2572271cbeb0 -r e80a867c3405 sys/fs/ntfs/ntfs_vfsops.c
--- a/sys/fs/ntfs/ntfs_vfsops.c Thu Oct 17 21:03:27 2013 +0000
+++ b/sys/fs/ntfs/ntfs_vfsops.c Thu Oct 17 21:03:50 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_vfsops.c,v 1.88 2013/09/30 18:58:00 hannken Exp $ */
+/*     $NetBSD: ntfs_vfsops.c,v 1.89 2013/10/17 21:04:12 christos Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.88 2013/09/30 18:58:00 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.89 2013/10/17 21:04:12 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -307,7 +307,7 @@
        struct buf *bp;
        struct ntfsmount *ntmp;
        dev_t dev = devvp->v_rdev;
-       int error, ronly, i;
+       int error, i;
        struct vnode *vp;
 
        ntmp = NULL;
@@ -321,8 +321,6 @@
        if (error)
                return (error);
 
-       ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
-
        bp = NULL;
 
        error = bread(devvp, BBLOCK, BBSIZE, NOCRED, 0, &bp);
diff -r 2572271cbeb0 -r e80a867c3405 sys/fs/union/union_subr.c
--- a/sys/fs/union/union_subr.c Thu Oct 17 21:03:27 2013 +0000
+++ b/sys/fs/union/union_subr.c Thu Oct 17 21:03:50 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: union_subr.c,v 1.56 2012/11/05 17:24:11 dholland Exp $ */
+/*     $NetBSD: union_subr.c,v 1.57 2013/10/17 21:03:50 christos Exp $ */
 
 /*
  * Copyright (c) 1994
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: union_subr.c,v 1.56 2012/11/05 17:24:11 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: union_subr.c,v 1.57 2013/10/17 21:03:50 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -598,11 +598,8 @@
 int
 union_freevp(struct vnode *vp)
 {
-       int hash;
        struct union_node *un = VTOUNION(vp);
 
-       hash = UNION_HASH(un->un_uppervp, un->un_lowervp);
-
        mutex_enter(&uhash_lock);
        if (un->un_cflags & UN_CACHED) {
                un->un_cflags &= ~UN_CACHED;
@@ -961,7 +958,6 @@
 union_removed_upper(struct union_node *un)
 {
        struct vnode *vp = UNIONTOV(un);
-       int hash;
 
        vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
 #if 1
@@ -979,7 +975,6 @@
        union_newupper(un, NULLVP);
 #endif
 
-       hash = UNION_HASH(un->un_uppervp, un->un_lowervp);
        VOP_UNLOCK(vp);
 
        mutex_enter(&uhash_lock);



Home | Main Index | Thread Index | Old Index