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/185
-- gerrit
commit 0e3649d711ba5191806d9f2250513a31be77eba2
Author: Ãyvind Harboe <[email protected]>
Date: Tue Nov 8 17:55:56 2011 +0100
warning fix: remove unused variable assignment
Change-Id: I8c73b0f9a6a10734e539eedcedd79e1a34122f60
Signed-off-by: Ãyvind Harboe <[email protected]>
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c
index 39c189c..95fc949 100644
--- a/src/flash/nor/stellaris.c
+++ b/src/flash/nor/stellaris.c
@@ -469,7 +469,7 @@ static int get_stellaris_info(struct flash_bank *bank, char
*buf, int buf_size)
if (stellaris_info->num_lockbits > 0)
{
- printed = snprintf(buf,
+ snprintf(buf,
buf_size,
"pagesize: %" PRIi32 ", pages: %d, "
"lockbits: %i, pages per lockbit: %i\n",
@@ -477,8 +477,6 @@ static int get_stellaris_info(struct flash_bank *bank, char
*buf, int buf_size)
(unsigned) stellaris_info->num_pages,
stellaris_info->num_lockbits,
(unsigned) stellaris_info->pages_in_lockregion);
- 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