ext2fs: move assignment where it is not dead.

Submitted by:	Christoph Mallon
MFC after:	2 weeks
This commit is contained in:
pfg 2013-02-05 03:26:34 +00:00
parent 935c860d1b
commit 5e55b2c6f7

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) {