Don't use const on temporary variable.
It's not part of OpenOCD style: https://review.openocd.org/c/openocd/+/6319/5..10/src/target/aarch64.c#b1500 Change-Id: Ifb612a942507ca5ed8cac3e3ec59e0e14b0298ed Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
parent
b7738370b7
commit
3c5be531df
|
@ -3050,7 +3050,7 @@ static int handle_target(void *priv)
|
|||
* allow some slack in the time comparison. Otherwise, if we
|
||||
* schedule for now+polling_interval, the next poll won't
|
||||
* actually happen until a polling_interval later. */
|
||||
const bool poll_needed = timeval_ms() + polling_interval / 2 >= target->backoff.next_attempt;
|
||||
bool poll_needed = timeval_ms() + polling_interval / 2 >= target->backoff.next_attempt;
|
||||
if (!target->tap->enabled || power_dropout || srst_asserted || !poll_needed)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue