From 3c5be531dfe40d67199ffbb57c28b7bd96651923 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 22 Sep 2022 09:58:24 -0700 Subject: [PATCH] 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 --- src/target/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/target.c b/src/target/target.c index 5867149a7..927329a64 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -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;