From patchwork Wed Aug 31 20:00:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [01/10] nandwrite: trivial variable move Date: Wed, 31 Aug 2011 10:00:30 -0000 From: Brian Norris X-Patchwork-Id: 112666 Message-Id: <1314820839-7107-2-git-send-email-computersforpeace@gmail.com> To: "Artem Bityutskiy" Cc: b35362@freescale.com, Brian Norris , linux-mtd@lists.infradead.org, Mike Frysinger Signed-off-by: Brian Norris --- nandwrite.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nandwrite.c b/nandwrite.c index 95baa38..17a717c 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -496,7 +496,7 @@ int main(int argc, char * const argv[]) } if (!noecc) { - int i, start, len; + int start, len; struct nand_oobinfo old_oobinfo; /* Read the current oob info */ @@ -514,7 +514,7 @@ int main(int argc, char * const argv[]) * such as the layout used by diskonchip.c */ if (old_oobinfo.useecc == MTD_NANDECC_AUTOPLACE) { - int tags_pos = 0, tmp_ofs; + int i, tags_pos = 0, tmp_ofs; for (i = 0; old_oobinfo.oobfree[i][1]; i++) { /* Set the reserved bytes to 0xff */ start = old_oobinfo.oobfree[i][0];