ext2fs: Remove useless rootino local variable.

Submitted by:	Christoph Mallon
MFC after:	2 weeks
This commit is contained in:
Pedro F. Giffuni 2013-02-05 03:17:41 +00:00
parent ef024b0da9
commit 555368dcf1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246350

View File

@ -1086,7 +1086,7 @@ ext2_checkpath(source, target, cred)
struct ucred *cred; struct ucred *cred;
{ {
struct vnode *vp; struct vnode *vp;
int error, rootino, namlen; int error, namlen;
struct dirtemplate dirbuf; struct dirtemplate dirbuf;
vp = ITOV(target); vp = ITOV(target);
@ -1094,9 +1094,8 @@ ext2_checkpath(source, target, cred)
error = EEXIST; error = EEXIST;
goto out; goto out;
} }
rootino = EXT2_ROOTINO;
error = 0; error = 0;
if (target->i_number == rootino) if (target->i_number == EXT2_ROOTINO)
goto out; goto out;
for (;;) { for (;;) {
@ -1121,7 +1120,7 @@ ext2_checkpath(source, target, cred)
error = EINVAL; error = EINVAL;
break; break;
} }
if (dirbuf.dotdot_ino == rootino) if (dirbuf.dotdot_ino == EXT2_ROOTINO)
break; break;
vput(vp); vput(vp);
if ((error = VFS_VGET(vp->v_mount, dirbuf.dotdot_ino, if ((error = VFS_VGET(vp->v_mount, dirbuf.dotdot_ino,