]> git.sur5r.net Git - openocd/commitdiff
at91sam7: fix warnings by removing dead assignments
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 8 Nov 2011 16:43:32 +0000 (17:43 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 9 Nov 2011 16:30:55 +0000 (16:30 +0000)
Change-Id: I836038b3518e617291ac7d5d255a388d9486f67f
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/180
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/at91sam7.c

index ce4f8a91c7a822ae2f17f2cfee039f170afb4c7f..67e383a333c3937f2e51abac1c263aa16e10657a 100644 (file)
@@ -1168,14 +1168,11 @@ static int get_at91sam7_info(struct flash_bank *bank, char *buf, int buf_size)
        buf += printed;
        buf_size -= printed;
 
-       printed = snprintf(buf, buf_size,
+       snprintf(buf, buf_size,
                " Securitybit: %i | Nvmbits(%i): %i 0x%1.1x\n",
                at91sam7_info->securitybit, at91sam7_info->num_nvmbits,
                at91sam7_info->num_nvmbits_on, at91sam7_info->nvmbits);
 
-       buf += printed;
-       buf_size -= printed;
-
        return ERROR_OK;
 }