From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 23 Mar 2015 12:35:19 +0300 From: Dan Carpenter To: David Woodhouse Subject: [patch] jffs2: remove an unneeded condition Message-ID: <20150323093519.GB558@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: kernel-janitors@vger.kernel.org, linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , We know "rc" is set so there is no need to check again. Signed-off-by: Dan Carpenter diff --git a/fs/jffs2/xattr.c b/fs/jffs2/xattr.c index 762c7a3..2eac553 100644 --- a/fs/jffs2/xattr.c +++ b/fs/jffs2/xattr.c @@ -1266,7 +1266,6 @@ int jffs2_garbage_collect_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ if (rc) { JFFS2_WARNING("%s: jffs2_reserve_space_gc() = %d, request = %u\n", __func__, rc, totlen); - rc = rc ? rc : -EBADFD; goto out; } rc = save_xattr_ref(c, ref);