From 5373c91a917fef62cba5563ab824276a2ea8e456 Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 19 Jul 2008 22:29:44 +0000 Subject: Say hi to svn, by simplifing ffs_vget() function a bit - there is no need for a variable that is used only once. --- sys/ufs/ffs/ffs_vfsops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/ufs/ffs') diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 1b746f6..5ee123a 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1303,7 +1303,6 @@ ffs_vget(mp, ino, flags, vpp) struct vnode *vp; struct cdev *dev; int error; - struct thread *td; error = vfs_hash_get(mp, ino, flags, curthread, vpp, NULL, NULL); if (error || *vpp != NULL) @@ -1368,7 +1367,6 @@ ffs_vget(mp, ino, flags, vpp) } #endif - td = curthread; lockmgr(vp->v_vnlock, LK_EXCLUSIVE, NULL); error = insmntque(vp, mp); if (error != 0) { @@ -1376,7 +1374,7 @@ ffs_vget(mp, ino, flags, vpp) *vpp = NULL; return (error); } - error = vfs_hash_insert(vp, ino, flags, td, vpp, NULL, NULL); + error = vfs_hash_insert(vp, ino, flags, curthread, vpp, NULL, NULL); if (error || *vpp != NULL) return (error); -- cgit v1.1