Date: Tue, 5 Feb 2013 03:26:35 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r246352 - head/sys/fs/ext2fs Message-ID: <201302050326.r153QZJC005305@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Tue Feb 5 03:26:34 2013 New Revision: 246352 URL: http://svnweb.freebsd.org/changeset/base/246352 Log: ext2fs: move assignment where it is not dead. Submitted by: Christoph Mallon MFC after: 2 weeks Modified: head/sys/fs/ext2fs/ext2_lookup.c Modified: head/sys/fs/ext2fs/ext2_lookup.c ============================================================================== --- head/sys/fs/ext2fs/ext2_lookup.c Tue Feb 5 03:23:56 2013 (r246351) +++ head/sys/fs/ext2fs/ext2_lookup.c Tue Feb 5 03:26:34 2013 (r246352) @@ -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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302050326.r153QZJC005305>