jffs2: remove an unneeded condition

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Apr 22 10:59:05 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d800fcabc75a091569b6e19a67844eb264c7db9b
Commit:     d800fcabc75a091569b6e19a67844eb264c7db9b
Parent:     60c70d66cdd39eb560bba5a95c429bf2ad5294d0
Author:     Dan Carpenter <dan.carpenter at oracle.com>
AuthorDate: Mon Mar 23 12:35:19 2015 +0300
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Mar 30 17:39:16 2015 -0700

    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 at oracle.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 fs/jffs2/xattr.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/jffs2/xattr.c b/fs/jffs2/xattr.c
index d72817a..d279fb4 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-cvs mailing list