]> git.sur5r.net Git - openocd/commitdiff
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)
committerSpencer 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

index a62be6afa5280855bd83461d534227fc10030ec0..c400187d1b78a0ec2fc87c8b85b8207db7dcbe27 100644 (file)
@@ -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;
 }