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>
This commit is contained in:
parent
74558296d1
commit
234f51429e
|
@ -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)
|
static int get_em357_info(struct flash_bank *bank, char *buf, int buf_size)
|
||||||
{
|
{
|
||||||
int printed;
|
snprintf(buf, buf_size, "em357\n");
|
||||||
printed = snprintf(buf, buf_size, "em357\n");
|
|
||||||
buf += printed;
|
|
||||||
buf_size -= printed;
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue