diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-01-09 22:04:03 +0000 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-01-12 20:40:26 +0000 |
commit | 5f83378a9ca788e8a27e298b9e2b8969c944988b (patch) | |
tree | ed4412e1e437b975a18e2b1acf581ea1c26f71a0 /src/flash/nor/str7x.c | |
parent | 32d3063cf55fd4fc36d17b89647d86ea3c7cf9ab (diff) | |
download | riscv-openocd-5f83378a9ca788e8a27e298b9e2b8969c944988b.zip riscv-openocd-5f83378a9ca788e8a27e298b9e2b8969c944988b.tar.gz riscv-openocd-5f83378a9ca788e8a27e298b9e2b8969c944988b.tar.bz2 |
build: remove unused variables
detected by clang.
Change-Id: Id9effcc5437870f37fecd33803f7753c6eca53d6
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/361
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Diffstat (limited to 'src/flash/nor/str7x.c')
-rw-r--r-- | src/flash/nor/str7x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c index 91ef77b..57f860d 100644 --- a/src/flash/nor/str7x.c +++ b/src/flash/nor/str7x.c @@ -726,12 +726,10 @@ static int str7x_write(struct flash_bank *bank, uint8_t *buffer, /* data word 1 */ target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR0), 4, 1, last_dword); - bytes_written += 4; /* data word 2 */ target_write_memory(target, str7x_get_flash_adr(bank, FLASH_DR1), 4, 1, last_dword + 4); - bytes_written += 4; /* start programming cycle */ cmd = FLASH_DWPG | FLASH_WMS; |