]> git.sur5r.net Git - openocd/commitdiff
target/cortex_a: remove dead assignment
authorPaul Fertser <fercerpav@gmail.com>
Thu, 26 Feb 2015 16:48:08 +0000 (19:48 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Mon, 9 Mar 2015 06:34:01 +0000 (06:34 +0000)
Found by clang static checker.

Change-Id: I77b0dc18188328fdb28d07b9e5c52e06182d9e2b
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2561
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/cortex_a.c

index 489c8811d8825419dc5289796f5a79df86c6b051..9ae04322b91e97713ae4daeee13eb068a49779bc 100644 (file)
@@ -2390,7 +2390,6 @@ static int cortex_a_read_apb_ab_memory_fast(struct target *target,
 
                /* Advance. */
                buffer += (count - 1) * 4;
-               count = 1;
        } else {
                /* Issue the LDC instruction via a write to ITR. */
                retval = cortex_a_exec_opcode(target, ARMV4_5_LDC(0, 1, 0, 1, 14, 5, 0, 4), dscr);