aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/core.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-14 12:08:46 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-14 12:27:58 +0200
commitb6a82540654f02dbf4caaed1be538044220dd3dc (patch)
tree86405f1a4bb5799ed07d8dfed44c0d66f2001e39 /src/flash/nor/core.c
parentf3ae52cace69f9568bac719d50af3a62993e96ad (diff)
downloadriscv-openocd-b6a82540654f02dbf4caaed1be538044220dd3dc.zip
riscv-openocd-b6a82540654f02dbf4caaed1be538044220dd3dc.tar.gz
riscv-openocd-b6a82540654f02dbf4caaed1be538044220dd3dc.tar.bz2
flash: fix bug in error propagation of flash write_image
when a write/unlock/erase failed during write_image, then an error was not propagated back up so e.g. flash write image from tcl scripts would not throw an exception. Also flash filling speed was printed even when the operation failed. Output is now less confusing. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor/core.c')
-rw-r--r--src/flash/nor/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c
index d2f2754..84408e6 100644
--- a/src/flash/nor/core.c
+++ b/src/flash/nor/core.c
@@ -599,7 +599,6 @@ int flash_write_unlock(struct target *target, struct image *image,
}
/* find the corresponding flash bank */
- int retval;
retval = get_flash_bank_by_addr(target, run_address, false, &c);
if (retval != ERROR_OK)
return retval;