projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88aa5e3
)
ecos flash: -Wshadow warning fixes
author
Øyvind Harboe
<oyvind.harboe@zylin.com>
Tue, 15 Jun 2010 21:32:47 +0000
(23:32 +0200)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Tue, 15 Jun 2010 21:32:47 +0000
(23:32 +0200)
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/flash/nor/ecos.c
patch
|
blob
|
history
diff --git
a/src/flash/nor/ecos.c
b/src/flash/nor/ecos.c
index f9c32854881cbbab78a628ba0ce01f574342f8e2..945852ddabb6504664fa93350901917b19cd9d81 100644
(file)
--- 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;