]> git.sur5r.net Git - openocd/commitdiff
flash/nor/sim3x: remove dead assignment
authorPaul Fertser <fercerpav@gmail.com>
Thu, 26 Feb 2015 16:39:50 +0000 (19:39 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Mon, 9 Mar 2015 06:33:43 +0000 (06:33 +0000)
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>
src/flash/nor/sim3x.c

index 4628e68ed23822c439eb77f47410c4b6d3c73fac..867d0caf9c9b1f747fd447a1869f950fbfd3e5bd 100644 (file)
@@ -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)