Module Name:    src
Committed By:   christos
Date:           Thu Oct 17 21:03:50 UTC 2013

Modified Files:
        src/sys/fs/union: union_subr.c

Log Message:
remove unused code


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/fs/union/union_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/union/union_subr.c
diff -u src/sys/fs/union/union_subr.c:1.56 src/sys/fs/union/union_subr.c:1.57
--- src/sys/fs/union/union_subr.c:1.56	Mon Nov  5 12:24:11 2012
+++ src/sys/fs/union/union_subr.c	Thu Oct 17 17:03:50 2013
@@ -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 @@ found:
 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 @@ void
 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_removed_upper(struct union_node *u
 	union_newupper(un, NULLVP);
 #endif
 
-	hash = UNION_HASH(un->un_uppervp, un->un_lowervp);
 	VOP_UNLOCK(vp);
 
 	mutex_enter(&uhash_lock);

Reply via email to