jffs2: remove an unneeded condition
Subsystems (3)
PATCH 1/1 jffs2: remove an unneeded condition
We know "rc" is set so there is no need to check again.
Signed-off-by Dan Carpenter <[email protected]>
fs/jffs2/xattr.c +0 -1
@@ -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);
Brian Norris
AppliedQuoted 3 lines · Dan Carpenter
We know "rc" is set so there is no need to check again.
Signed-off-by Dan Carpenter <[email protected]>
Pushed to l2-mtd.git.
Brian