From: Dan Carpenter Date: Mon, 23 Mar 2015 09:35:19 +0000 (+0300) Subject: jffs2: remove an unneeded condition X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d800fcabc75a091569b6e19a67844eb264c7db9b;p=openwrt%2Fstaging%2Fblogic.git jffs2: remove an unneeded condition We know "rc" is set so there is no need to check again. Signed-off-by: Dan Carpenter Signed-off-by: Brian Norris --- diff --git a/fs/jffs2/xattr.c b/fs/jffs2/xattr.c index d72817ac51f6..d279fb49fe9c 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);