ext2fs: move assignment where it is not dead.

Submitted by:	Christoph Mallon
MFC after:	2 weeks
This commit is contained in:
Pedro F. Giffuni 2013-02-05 03:26:34 +00:00
parent 80b6a61199
commit d427334435
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246352

View File

@ -1094,9 +1094,10 @@ ext2_checkpath(source, target, cred)
error = EEXIST;
goto out;
}
error = 0;
if (target->i_number == EXT2_ROOTINO)
if (target->i_number == EXT2_ROOTINO) {
error = 0;
goto out;
}
for (;;) {
if (vp->v_type != VDIR) {