From: Axel Heider Date: Thu, 20 Apr 2023 09:21:14 +0000 (+0100) Subject: hw/timer/imx_epit: don't shadow variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=542fd43d79327dabe62e49ff584ca60b6184923a;p=qemu.git hw/timer/imx_epit: don't shadow variable Fix issue reported by Coverity. Signed-off-by: Axel Heider Message-id: 168070611775.20412.2883242077302841473-1@git.sr.ht Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- 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;