diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-11-01 22:10:54 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2011-11-02 09:44:08 +0000 |
commit | 955316a727c927d8c9fe46ec4cfa711545853b4f (patch) | |
tree | 76085177fa84755ce6d35d1cb854b8bbea98b48d /src/flash | |
parent | 2c906384c343215c3863e31ed0ac3fefcaad860f (diff) |
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')
-rw-r--r-- | src/flash/nor/pic32mx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c index 69321ac3..65d93ad4 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; |