diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-11-08 17:54:28 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2011-11-09 16:27:11 +0000 |
commit | 234f51429e14de46141049c6e005524f08305e87 (patch) | |
tree | 2f871a6a2e40643726a338aafad0be2ec8721bde /src | |
parent | 74558296d1e185fc4a7522f08832eceed460cbd7 (diff) |
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')
-rw-r--r-- | src/flash/nor/em357.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c index a62be6af..c400187d 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; } |