aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Heider <axel.heider@hensoldt.net>2023-04-20 10:21:14 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2023-04-27 08:51:16 +0300
commitac7f07ebc8facf0c96905db8b6b6a453b284edfb (patch)
tree055a4c89fcfaf6bfea1732c8bfd2f0b337651c23
parent3ed99d232c1173aff3806908e29f29b30af7d58e (diff)
hw/timer/imx_epit: don't shadow variable
Fix issue reported by Coverity. Signed-off-by: Axel Heider <axel.heider@hensoldt.net> Message-id: 168070611775.20412.2883242077302841473-1@git.sr.ht Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> (cherry picked from commit 542fd43d79327dabe62e49ff584ca60b6184923a) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--hw/timer/imx_epit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/imx_epit.c b/hw/timer/imx_epit.c
index 3a869782bc..0821c62cd1 100644
--- a/hw/timer/imx_epit.c
+++ b/hw/timer/imx_epit.c
@@ -179,7 +179,7 @@ static void imx_epit_update_compare_timer(IMXEPITState *s)
* the compare value. Otherwise it may fire at most once in the
* current round.
*/
- bool is_oneshot = (limit >= s->cmp);
+ is_oneshot = (limit >= s->cmp);
if (counter >= s->cmp) {
/* The compare timer fires in the current round. */
counter -= s->cmp;