From 234f51429e14de46141049c6e005524f08305e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Tue, 8 Nov 2011 17:54:28 +0100 Subject: [PATCH] em357: fix warning by removing unused local variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9def63d36ed4fa8bf9cdeeedc18b1b25d0e487d6 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/184 Tested-by: jenkins Reviewed-by: Spencer Oliver --- src/flash/nor/em357.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c index a62be6afa..c400187d1 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; }