flash/nor/sim3x: remove dead assignment
Found by clang static code checker. Change-Id: Ic1370f8d7a48f08da6514afec5aacde38af7dfb6 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2559 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
parent
01b42b2e7c
commit
cc50a42882
|
@ -877,7 +877,6 @@ static int sim3x_flash_info(struct flash_bank *bank, char *buf, int buf_size)
|
||||||
|
|
||||||
/* Print flash size */
|
/* Print flash size */
|
||||||
printed = snprintf(buf, buf_size, " flash_size = %dKB", sim3x_info->flash_size_kb);
|
printed = snprintf(buf, buf_size, " flash_size = %dKB", sim3x_info->flash_size_kb);
|
||||||
buf += printed;
|
|
||||||
buf_size -= printed;
|
buf_size -= printed;
|
||||||
|
|
||||||
if (buf_size <= 0)
|
if (buf_size <= 0)
|
||||||
|
|
Loading…
Reference in New Issue