summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-02-05 03:17:41 +0000
committerpfg <pfg@FreeBSD.org>2013-02-05 03:17:41 +0000
commitc6538dcc306735e3c4403502e6a57ee5f189bae0 (patch)
tree97c80ac55dfa53c17f6b3f623301af40641dfc5b
parent28dd7f0e2d52783a84b0a2e72365a2ff34d54a41 (diff)
downloadFreeBSD-src-c6538dcc306735e3c4403502e6a57ee5f189bae0.zip
FreeBSD-src-c6538dcc306735e3c4403502e6a57ee5f189bae0.tar.gz
ext2fs: Remove useless rootino local variable.
Submitted by: Christoph Mallon MFC after: 2 weeks
-rw-r--r--sys/fs/ext2fs/ext2_lookup.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/fs/ext2fs/ext2_lookup.c b/sys/fs/ext2fs/ext2_lookup.c
index 441e9a6..57c8ece 100644
--- a/sys/fs/ext2fs/ext2_lookup.c
+++ b/sys/fs/ext2fs/ext2_lookup.c
@@ -1086,7 +1086,7 @@ ext2_checkpath(source, target, cred)
struct ucred *cred;
{
struct vnode *vp;
- int error, rootino, namlen;
+ int error, namlen;
struct dirtemplate dirbuf;
vp = ITOV(target);
@@ -1094,9 +1094,8 @@ ext2_checkpath(source, target, cred)
error = EEXIST;
goto out;
}
- rootino = EXT2_ROOTINO;
error = 0;
- if (target->i_number == rootino)
+ if (target->i_number == EXT2_ROOTINO)
goto out;
for (;;) {
@@ -1121,7 +1120,7 @@ ext2_checkpath(source, target, cred)
error = EINVAL;
break;
}
- if (dirbuf.dotdot_ino == rootino)
+ if (dirbuf.dotdot_ino == EXT2_ROOTINO)
break;
vput(vp);
if ((error = VFS_VGET(vp->v_mount, dirbuf.dotdot_ino,
OpenPOWER on IntegriCloud