This is an automated email from Gerrit.

?yvind Harboe ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/180

-- gerrit

commit 333d32e480d5c7af7db6773ae38c4085af37bce3
Author: Øyvind Harboe <[email protected]>
Date:   Tue Nov 8 17:43:32 2011 +0100

    at91sam7: fix warnings by removing dead assignments
    
    Change-Id: I836038b3518e617291ac7d5d255a388d9486f67f
    Signed-off-by: Øyvind Harboe <[email protected]>

diff --git a/src/flash/nor/at91sam7.c b/src/flash/nor/at91sam7.c
index ce4f8a9..67e383a 100644
--- a/src/flash/nor/at91sam7.c
+++ b/src/flash/nor/at91sam7.c
@@ -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;
 }
 

-- 

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Openocd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to