This is an automated email from Gerrit.

?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/45

-- gerrit
commit d1857ad1f392b5e700d9d977ab65d827204f6957
Author: Øyvind Harboe <oyvind.har...@zylin.com>
Date:   Sat Oct 22 01:06:26 2011 +0200

    tms470: remove dead assignment warning
    
    Change-Id: I21e7ac47f80d93c9c0d7b169f8848b929c664b20
    Signed-off-by: Øyvind Harboe <oyvind.har...@zylin.com>

diff --git a/src/flash/nor/tms470.c b/src/flash/nor/tms470.c
index dd9ff5b..f497b38 100644
--- a/src/flash/nor/tms470.c
+++ b/src/flash/nor/tms470.c
@@ -1248,9 +1248,7 @@ static int get_tms470_info(struct flash_bank *bank, char 
*buf, int buf_size)
        buf += used;
        buf_size -= used;
 
-       used += snprintf(buf, buf_size, "Flash protection level 2 is %s\n", 
tms470_check_flash_unlocked(bank->target) == ERROR_OK ? "disabled" : "enabled");
-       buf += used;
-       buf_size -= used;
+       snprintf(buf, buf_size, "Flash protection level 2 is %s\n", 
tms470_check_flash_unlocked(bank->target) == ERROR_OK ? "disabled" : "enabled");
 
        return ERROR_OK;
 }

-- 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to