From 90454525b6119b95226e02754d3a5c6e125c5922 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Tue, 15 Jun 2010 23:29:08 +0200 Subject: [PATCH] flash: -Wshadow warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/flash/nor/tcl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 28a504e7..3dc6cff3 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -467,7 +467,7 @@ COMMAND_HANDLER(handle_flash_fill_command) uint32_t cur_size = 0; uint32_t chunk_count; struct target *target = get_current_target(CMD_CTX); - uint32_t i; + unsigned i; uint32_t wordsize; int retval = ERROR_OK; @@ -563,7 +563,6 @@ COMMAND_HANDLER(handle_flash_fill_command) goto done; } - unsigned i; for (i = 0; i < cur_size; i++) { if (readback[i]!=chunk[i]) -- 2.39.5