[patch] jffs2: remove an unneeded condition

Dan Carpenter dan.carpenter at oracle.com
Mon Mar 23 02:35:19 PDT 2015


We know "rc" is set so there is no need to check again.

Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

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);



More information about the linux-mtd mailing list