[JFFS2] Prevent return of initialised variable in jffs2_init_acl_post()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Oct 27 10:59:01 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8d6ea587d94569919bd2c31c042d5b9b8734e351
Commit:     8d6ea587d94569919bd2c31c042d5b9b8734e351
Parent:     ec3b67c11df42362ccda81261d62829042f223f0
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sat Oct 27 10:36:44 2007 -0400
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sat Oct 27 10:36:44 2007 -0400

    [JFFS2] Prevent return of initialised variable in jffs2_init_acl_post()
    
    Spotted by the Coverity checker, and pointed out by Adrian Bunk.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 fs/jffs2/acl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/jffs2/acl.c b/fs/jffs2/acl.c
index 9728614..77fc583 100644
--- a/fs/jffs2/acl.c
+++ b/fs/jffs2/acl.c
@@ -372,7 +372,7 @@ int jffs2_init_acl_post(struct inode *inode)
 			return rc;
 	}
 
-	return rc;
+	return 0;
 }
 
 void jffs2_clear_acl(struct jffs2_inode_info *f)



More information about the linux-mtd-cvs mailing list