aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/pic32mx.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-11-01 22:10:54 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2011-11-02 09:44:08 +0000
commit955316a727c927d8c9fe46ec4cfa711545853b4f (patch)
tree76085177fa84755ce6d35d1cb854b8bbea98b48d /src/flash/nor/pic32mx.c
parent2c906384c343215c3863e31ed0ac3fefcaad860f (diff)
downloadriscv-openocd-955316a727c927d8c9fe46ec4cfa711545853b4f.zip
riscv-openocd-955316a727c927d8c9fe46ec4cfa711545853b4f.tar.gz
riscv-openocd-955316a727c927d8c9fe46ec4cfa711545853b4f.tar.bz2
fix warning: remove assigned to variable
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>
Diffstat (limited to 'src/flash/nor/pic32mx.c')
-rw-r--r--src/flash/nor/pic32mx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c
index 69321ac..65d93ad 100644
--- a/src/flash/nor/pic32mx.c
+++ b/src/flash/nor/pic32mx.c
@@ -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;