diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-15 23:32:47 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-15 23:32:47 +0200 |
commit | 953d96f1e2c6619da76f4925fdb62b7f54f0e0fd (patch) | |
tree | 69e22741e65c3207d4afcaf6da214f82375014ae /src | |
parent | 88aa5e31d1496c078c32c95708c62e464959496f (diff) | |
download | openocd_libswd-953d96f1e2c6619da76f4925fdb62b7f54f0e0fd.tar.gz openocd_libswd-953d96f1e2c6619da76f4925fdb62b7f54f0e0fd.tar.bz2 openocd_libswd-953d96f1e2c6619da76f4925fdb62b7f54f0e0fd.tar.xz openocd_libswd-953d96f1e2c6619da76f4925fdb62b7f54f0e0fd.zip |
ecos flash: -Wshadow warning fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/nor/ecos.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/flash/nor/ecos.c b/src/flash/nor/ecos.c index f9c32854..945852dd 100644 --- a/src/flash/nor/ecos.c +++ b/src/flash/nor/ecos.c @@ -173,7 +173,6 @@ static int loadDriver(struct ecosflash_flash_bank *info) for (i = 0; i < image.num_sections; i++) { void *buffer = malloc(image.sections[i].size); - int retval; if ((retval = image_read_section(&image, i, 0x0, image.sections[i].size, buffer, &buf_cnt)) != ERROR_OK) { free(buffer); @@ -305,7 +304,6 @@ static int eCosBoard_flash(struct ecosflash_flash_bank *info, void *data, uint32 t = chunk; } - int retval; retval = target_write_buffer(target, buffer, t, ((uint8_t *)data) + i); if (retval != ERROR_OK) return retval; |