diff options
author | pjd <pjd@FreeBSD.org> | 2008-07-19 22:29:44 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2008-07-19 22:29:44 +0000 |
commit | 5373c91a917fef62cba5563ab824276a2ea8e456 (patch) | |
tree | b8cd398003bd1dc3abf70dd0fe85130385ffd131 | |
parent | daf2fe9d1565a18cfc148362faf4f9f4fcc00c08 (diff) | |
download | FreeBSD-src-5373c91a917fef62cba5563ab824276a2ea8e456.zip FreeBSD-src-5373c91a917fef62cba5563ab824276a2ea8e456.tar.gz |
Say hi to svn, by simplifing ffs_vget() function a bit - there is no need for
a variable that is used only once.
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |