aboutsummaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-11-08 17:54:28 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2011-11-09 16:27:11 +0000
commit234f51429e14de46141049c6e005524f08305e87 (patch)
tree2f871a6a2e40643726a338aafad0be2ec8721bde /src/flash
parent74558296d1e185fc4a7522f08832eceed460cbd7 (diff)
downloadriscv-openocd-234f51429e14de46141049c6e005524f08305e87.zip
riscv-openocd-234f51429e14de46141049c6e005524f08305e87.tar.gz
riscv-openocd-234f51429e14de46141049c6e005524f08305e87.tar.bz2
em357: fix warning by removing unused local variables
Change-Id: I9def63d36ed4fa8bf9cdeeedc18b1b25d0e487d6 Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/184 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/nor/em357.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c
index a62be6a..c400187 100644
--- a/src/flash/nor/em357.c
+++ b/src/flash/nor/em357.c
@@ -757,10 +757,7 @@ static int em357_auto_probe(struct flash_bank *bank)
static int get_em357_info(struct flash_bank *bank, char *buf, int buf_size)
{
- int printed;
- printed = snprintf(buf, buf_size, "em357\n");
- buf += printed;
- buf_size -= printed;
+ snprintf(buf, buf_size, "em357\n");
return ERROR_OK;
}