Skip to content

Commit

Permalink
jffs2: remove an unneeded condition
Browse files Browse the repository at this point in the history
We know "rc" is set so there is no need to check again.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  • Loading branch information
Dan Carpenter authored and Brian Norris committed Mar 31, 2015
1 parent 60c70d6 commit d800fca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/jffs2/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d800fca

Please sign in to comment.