aboutsummaryrefslogtreecommitdiff
path: root/fs/jffs2/xattr.c
diff options
context:
space:
mode:
authorDan Carpenter2015-03-23 12:35:19 +0300
committerBrian Norris2015-03-30 17:39:16 -0700
commitd800fcabc75a091569b6e19a67844eb264c7db9b (patch)
treeb8ad713d65b58dbe59a37a9a3d24c33a7c2ee447 /fs/jffs2/xattr.c
parent60c70d66cdd39eb560bba5a95c429bf2ad5294d0 (diff)
jffs2: remove an unneeded condition
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>
Diffstat (limited to 'fs/jffs2/xattr.c')
-rw-r--r--fs/jffs2/xattr.c1
1 files changed, 0 insertions, 1 deletions
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);