aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-31 13:00:30 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 15:59:44 +0300
commit8138a2273687f54c7e14316c10a91e0e515c919b (patch)
treea4cd3ca1222801c093abbd44c56c27c2034e814f
parent73c6c15a4f10f9fd437d28a7de9dc90a6ed97826 (diff)
nandwrite: trivial variable move
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
-rw-r--r--nandwrite.c4
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];