diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-01-10 14:32:29 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-11 10:53:51 +0100 |
commit | bce41d601e58af12cee1398fe836e6b9a8fb5396 (patch) | |
tree | 9d3b7d8fc67d3629c015bf5fc15c10cb223a81ad /fs/jffs2/erase.c | |
parent | mtd: gpmi-nand bugfix: reset the BCH module when it is not MX23 (diff) | |
download | linux-bce41d601e58af12cee1398fe836e6b9a8fb5396.tar.xz linux-bce41d601e58af12cee1398fe836e6b9a8fb5396.zip |
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>
Diffstat (limited to 'fs/jffs2/erase.c')
-rw-r--r-- | 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 a01cdad6aad1..eafb8d37a6fb 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, |