From: Øyvind Harboe Date: Tue, 8 Nov 2011 16:54:28 +0000 (+0100) Subject: em357: fix warning by removing unused local variables X-Git-Tag: v0.6.0-rc1~445 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=234f51429e14de46141049c6e005524f08305e87;p=openocd em357: fix warning by removing unused local variables Change-Id: I9def63d36ed4fa8bf9cdeeedc18b1b25d0e487d6 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/184 Tested-by: jenkins Reviewed-by: Spencer Oliver --- 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; }