jffs2: do not initialize variable unnecessarily
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 10 Jan 2012 13:32:29 +0000 (15:32 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 11 Jan 2012 09:53:51 +0000 (09:53 +0000)
Remove unnecessary initializer for a local variable.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/erase.c

index a01cdad6aad1810f0323d6494865f7540d50421c..eafb8d37a6fb89173d26ecf527a3f69433a2565f 100644 (file)
@@ -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,