jffs2: do not initialize variable unnecessarily

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Jan 11 13:59:02 EST 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=bce41d601e58af12cee1398fe836e6b9a8fb5396
Commit:     bce41d601e58af12cee1398fe836e6b9a8fb5396
Parent:     9398d1ce09b9009996f7d2468e1d3c785fa6feda
Author:     Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
AuthorDate: Tue Jan 10 15:32:29 2012 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed Jan 11 09:53:51 2012 +0000

    jffs2: do not initialize variable unnecessarily
    
    Remove unnecessary initializer for a local variable.
    
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 fs/jffs2/erase.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c
index a01cdad..eafb8d3 100644
--- a/fs/jffs2/erase.c
+++ b/fs/jffs2/erase.c
@@ -335,7 +335,7 @@ static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_erasebl
 	void *ebuf;
 	uint32_t ofs;
 	size_t retlen;
-	int ret = -EIO;
+	int ret;
 	unsigned long *wordebuf;
 
 	ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen,



More information about the linux-mtd-cvs mailing list