Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/chfs remove unused
details: https://anonhg.NetBSD.org/src/rev/49a0dd247844
branches: trunk
changeset: 790772:49a0dd247844
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 17:18:38 2013 +0000
description:
remove unused
diffstat:
sys/ufs/chfs/chfs_gc.c | 6 ++----
sys/ufs/chfs/chfs_readinode.c | 3 +--
sys/ufs/chfs/chfs_subr.c | 4 +---
sys/ufs/chfs/chfs_vfsops.c | 4 +---
sys/ufs/chfs/chfs_vnops.c | 4 +---
5 files changed, 6 insertions(+), 15 deletions(-)
diffs (118 lines):
diff -r 6102769837f6 -r 49a0dd247844 sys/ufs/chfs/chfs_gc.c
--- a/sys/ufs/chfs/chfs_gc.c Sun Oct 20 17:17:30 2013 +0000
+++ b/sys/ufs/chfs/chfs_gc.c Sun Oct 20 17:18:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_gc.c,v 1.4 2012/10/19 12:44:39 ttoth Exp $ */
+/* $NetBSD: chfs_gc.c,v 1.5 2013/10/20 17:18:38 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -985,8 +985,6 @@
int ret;
- struct vnode *vnode = NULL;
-
dbg_gc("gcollect_deletion_dirent\n");
/* Check node. */
@@ -995,7 +993,7 @@
nref_len = chfs_nref_len(chmp, cheb, fd->nref);
- vnode = chfs_vnode_lookup(chmp, fd->vno);
+ (void)chfs_vnode_lookup(chmp, fd->vno);
/* Find it in parent dirents. */
for (nref = parent->chvc->dirents;
diff -r 6102769837f6 -r 49a0dd247844 sys/ufs/chfs/chfs_readinode.c
--- a/sys/ufs/chfs/chfs_readinode.c Sun Oct 20 17:17:30 2013 +0000
+++ b/sys/ufs/chfs/chfs_readinode.c Sun Oct 20 17:18:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_readinode.c,v 1.7 2012/12/01 11:31:01 mbalmer Exp $ */
+/* $NetBSD: chfs_readinode.c,v 1.8 2013/10/20 17:18:38 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -507,7 +507,6 @@
}
rb_tree_insert_node(fragtree, holefrag);
- this = holefrag;
}
rb_tree_insert_node(fragtree, newfrag);
diff -r 6102769837f6 -r 49a0dd247844 sys/ufs/chfs/chfs_subr.c
--- a/sys/ufs/chfs/chfs_subr.c Sun Oct 20 17:17:30 2013 +0000
+++ b/sys/ufs/chfs/chfs_subr.c Sun Oct 20 17:18:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_subr.c,v 1.8 2012/10/19 12:44:39 ttoth Exp $ */
+/* $NetBSD: chfs_subr.c,v 1.9 2013/10/20 17:18:38 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -253,14 +253,12 @@
int
chfs_chflags(struct vnode *vp, int flags, kauth_cred_t cred)
{
- struct chfs_mount *chmp;
struct chfs_inode *ip;
int error = 0;
kauth_action_t action = KAUTH_VNODE_WRITE_FLAGS;
bool changing_sysflags = false;
ip = VTOI(vp);
- chmp = ip->chmp;
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return EROFS;
diff -r 6102769837f6 -r 49a0dd247844 sys/ufs/chfs/chfs_vfsops.c
--- a/sys/ufs/chfs/chfs_vfsops.c Sun Oct 20 17:17:30 2013 +0000
+++ b/sys/ufs/chfs/chfs_vfsops.c Sun Oct 20 17:18:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_vfsops.c,v 1.8 2013/09/30 18:58:00 hannken Exp $ */
+/* $NetBSD: chfs_vfsops.c,v 1.9 2013/10/20 17:18:38 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -204,7 +204,6 @@
chfs_mountfs(struct vnode *devvp, struct mount *mp)
{
struct lwp *l = curlwp;
- struct proc *p;
kauth_cred_t cred;
devmajor_t flash_major;
dev_t dev;
@@ -216,7 +215,6 @@
dbg("mountfs()\n");
dev = devvp->v_rdev;
- p = l ? l->l_proc : NULL;
cred = l ? l->l_cred : NOCRED;
/* Flush out any old buffers remaining from a previous use. */
diff -r 6102769837f6 -r 49a0dd247844 sys/ufs/chfs/chfs_vnops.c
--- a/sys/ufs/chfs/chfs_vnops.c Sun Oct 20 17:17:30 2013 +0000
+++ b/sys/ufs/chfs/chfs_vnops.c Sun Oct 20 17:18:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_vnops.c,v 1.17 2013/06/23 07:28:37 dholland Exp $ */
+/* $NetBSD: chfs_vnops.c,v 1.18 2013/10/20 17:18:38 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -217,7 +217,6 @@
struct ufsmount *ump;
struct chfs_mount *chmp;
- ino_t ino;
struct chfs_full_dnode *fd;
struct buf *bp;
@@ -255,7 +254,6 @@
err = chfs_makeinode(mode, dvp, &vp, cnp, vap->va_type);
ip = VTOI(vp);
- ino = ip->ino;
if (vap->va_rdev != VNOVAL)
ip->rdev = vap->va_rdev;
Home |
Main Index |
Thread Index |
Old Index