This is an automated email from Gerrit. Antonio Borneo (borneo.anto...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/50
-- gerrit commit b276d6e9eeacf7b7c863c6212ae2a883eb0be09d Author: Antonio Borneo <borneo.anto...@gmail.com> Date: Sat Oct 22 19:23:10 2011 +0800 FLASH/STMSMI: fix clang "dead store" warning Change-Id: Icfdefdc48432db2057d3fea19dc424571d2385eb Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com> diff --git a/src/flash/nor/stmsmi.c b/src/flash/nor/stmsmi.c index d298b36..bfec789 100644 --- a/src/flash/nor/stmsmi.c +++ b/src/flash/nor/stmsmi.c @@ -714,20 +714,17 @@ static int stmsmi_protect_check(struct flash_bank *bank) static int get_stmsmi_info(struct flash_bank *bank, char *buf, int buf_size) { struct stmsmi_flash_bank *stmsmi_info = bank->driver_priv; - int printed; if (!(stmsmi_info->probed)) { - printed = snprintf(buf, buf_size, + snprintf(buf, buf_size, "\nSMI flash bank not probed yet\n"); return ERROR_OK; } - printed = snprintf(buf, buf_size, "\nSMI flash information:\n" + snprintf(buf, buf_size, "\nSMI flash information:\n" " Device \'%s\' (ID 0x%08x)\n", stmsmi_info->dev->name, stmsmi_info->dev->device_id); - buf += printed; - buf_size -= printed; return ERROR_OK; } -- _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development