Преглед изворни кода

jffs2: do not initialize variable unnecessarily

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>
Artem Bityutskiy пре 13 година
родитељ
комит
bce41d601e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      fs/jffs2/erase.c

+ 1 - 1
fs/jffs2/erase.c

@@ -335,7 +335,7 @@ static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_erasebl
 	void *ebuf;
 	void *ebuf;
 	uint32_t ofs;
 	uint32_t ofs;
 	size_t retlen;
 	size_t retlen;
-	int ret = -EIO;
+	int ret;
 	unsigned long *wordebuf;
 	unsigned long *wordebuf;
 
 
 	ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen,
 	ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen,