projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7455829
)
em357: fix warning by removing unused local variables
author
Øyvind Harboe
<oyvind.harboe@zylin.com>
Tue, 8 Nov 2011 16:54:28 +0000
(17:54 +0100)
committer
Spencer Oliver
<spen@spen-soft.co.uk>
Wed, 9 Nov 2011 16:27:11 +0000
(16:27 +0000)
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>
src/flash/nor/em357.c
patch
|
blob
|
history
diff --git
a/src/flash/nor/em357.c
b/src/flash/nor/em357.c
index a62be6afa5280855bd83461d534227fc10030ec0..c400187d1b78a0ec2fc87c8b85b8207db7dcbe27 100644
(file)
--- 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;
}