flash: -Wshadow warning fix

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
__archive__
Øyvind Harboe 2010-06-15 23:29:08 +02:00
parent 4d0d649ef9
commit 90454525b6
1 changed files with 1 additions and 2 deletions

View File

@ -467,7 +467,7 @@ COMMAND_HANDLER(handle_flash_fill_command)
uint32_t cur_size = 0; uint32_t cur_size = 0;
uint32_t chunk_count; uint32_t chunk_count;
struct target *target = get_current_target(CMD_CTX); struct target *target = get_current_target(CMD_CTX);
uint32_t i; unsigned i;
uint32_t wordsize; uint32_t wordsize;
int retval = ERROR_OK; int retval = ERROR_OK;
@ -563,7 +563,6 @@ COMMAND_HANDLER(handle_flash_fill_command)
goto done; goto done;
} }
unsigned i;
for (i = 0; i < cur_size; i++) for (i = 0; i < cur_size; i++)
{ {
if (readback[i]!=chunk[i]) if (readback[i]!=chunk[i])