aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2013-02-05 03:26:34 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2013-02-05 03:26:34 +0000
commitd427334435d552b64d765cbd572033d1ef96cd3f (patch)
tree05536cccf8a7a7294c7da0e61a3aab57f8bd7332
parent80b6a61199c8c8458ce45222521a96f726fe7430 (diff)
downloadsrc-d427334435d552b64d765cbd572033d1ef96cd3f.tar.gz
src-d427334435d552b64d765cbd572033d1ef96cd3f.zip
ext2fs: move assignment where it is not dead.
Submitted by: Christoph Mallon MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=246352
-rw-r--r--sys/fs/ext2fs/ext2_lookup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_lookup.c b/sys/fs/ext2fs/ext2_lookup.c
index 57c8ece733a8..8827550c0e09 100644
--- a/sys/fs/ext2fs/ext2_lookup.c
+++ b/sys/fs/ext2fs/ext2_lookup.c
@@ -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) {