]> git.sur5r.net Git - openocd/commitdiff
fix warning: remove assigned to variable
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 1 Nov 2011 21:10:54 +0000 (22:10 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 2 Nov 2011 09:44:08 +0000 (09:44 +0000)
variable is subsequently not used

Change-Id: I177d21c6ba9f1f2e3765feffdbf317ea375a8cfe
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/149
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/pic32mx.c

index 69321ac3eba9e9defa4c4c3a9cabb01bd7b7f3f0..65d93ad40e1b8188180dbae9a9207f15c8824dda 100644 (file)
@@ -724,7 +724,7 @@ static int pic32mx_info(struct flash_bank *bank, char *buf, int buf_size)
 
        buf += printed;
        buf_size -= printed;
-       printed = snprintf(buf, buf_size, " Ver: 0x%02x",
+       snprintf(buf, buf_size, " Ver: 0x%02x",
                        (unsigned)((device_id >> 28) & 0xf));
 
        return ERROR_OK;