From 555368dcf139bb9df78a1efe539261feb4e1192f Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Tue, 5 Feb 2013 03:17:41 +0000 Subject: [PATCH] ext2fs: Remove useless rootino local variable. Submitted by: Christoph Mallon MFC after: 2 weeks --- sys/fs/ext2fs/ext2_lookup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/fs/ext2fs/ext2_lookup.c b/sys/fs/ext2fs/ext2_lookup.c index 441e9a611eca..57c8ece733a8 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,