From: Paul Fertser Date: Thu, 26 Feb 2015 16:48:08 +0000 (+0300) Subject: target/cortex_a: remove dead assignment X-Git-Tag: v0.9.0-rc1~96 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e00a56bede4308426d17fda8cafacf7ddc82a238;p=openocd target/cortex_a: remove dead assignment Found by clang static checker. Change-Id: I77b0dc18188328fdb28d07b9e5c52e06182d9e2b Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2561 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 489c8811..9ae04322 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -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);