From 5e55b2c6f7167a85ef25c5e89b3657cea1f67b36 Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 5 Feb 2013 03:26:34 +0000 Subject: [PATCH] ext2fs: move assignment where it is not dead. Submitted by: Christoph Mallon MFC after: 2 weeks --- sys/fs/ext2fs/ext2_lookup.c | 5 +++-- 1 file 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) {