Skip to contentSkip to conversation

jffs2: remove an unneeded condition

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 23, 2015 – Mar 31, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jffs2: remove an unneeded condition

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

fs/jffs2/xattr.c +0 -1
index 762c7a3..2eac553 100644
@@ -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);