ext2fs: Remove useless rootino local variable.
Submitted by: Christoph Mallon MFC after: 2 weeks
This commit is contained in:
parent
ef024b0da9
commit
555368dcf1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246350
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user