diff options
author | Axel Heider <axel.heider@hensoldt.net> | 2023-04-20 10:21:14 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-04-20 10:21:14 +0100 |
commit | 542fd43d79327dabe62e49ff584ca60b6184923a (patch) | |
tree | 3dc0ada8c2abfd978d3557709a98711bb95be651 /hw/timer | |
parent | d784c5fbbadff4684c874474067046ec1b6d8bb0 (diff) | |
download | qemu-542fd43d79327dabe62e49ff584ca60b6184923a.zip qemu-542fd43d79327dabe62e49ff584ca60b6184923a.tar.gz qemu-542fd43d79327dabe62e49ff584ca60b6184923a.tar.bz2 |
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>
Diffstat (limited to 'hw/timer')
-rw-r--r-- | hw/timer/imx_epit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/timer/imx_epit.c b/hw/timer/imx_epit.c index 3a86978..0821c62 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; |