From: Paul Fertser Date: Thu, 26 Feb 2015 16:39:50 +0000 (+0300) Subject: flash/nor/sim3x: remove dead assignment X-Git-Tag: v0.9.0-rc1~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc50a428829d6feaf9b6eb2a796c4a834bd6368e;p=openocd flash/nor/sim3x: remove dead assignment Found by clang static code checker. Change-Id: Ic1370f8d7a48f08da6514afec5aacde38af7dfb6 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2559 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/flash/nor/sim3x.c b/src/flash/nor/sim3x.c index 4628e68e..867d0caf 100644 --- a/src/flash/nor/sim3x.c +++ b/src/flash/nor/sim3x.c @@ -877,7 +877,6 @@ static int sim3x_flash_info(struct flash_bank *bank, char *buf, int buf_size) /* Print flash size */ printed = snprintf(buf, buf_size, " flash_size = %dKB", sim3x_info->flash_size_kb); - buf += printed; buf_size -= printed; if (buf_size <= 0)