mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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>
This commit is contained in:
parent
d784c5fbba
commit
542fd43d79
1 changed files with 1 additions and 1 deletions
|
@ -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
|
* the compare value. Otherwise it may fire at most once in the
|
||||||
* current round.
|
* current round.
|
||||||
*/
|
*/
|
||||||
bool is_oneshot = (limit >= s->cmp);
|
is_oneshot = (limit >= s->cmp);
|
||||||
if (counter >= s->cmp) {
|
if (counter >= s->cmp) {
|
||||||
/* The compare timer fires in the current round. */
|
/* The compare timer fires in the current round. */
|
||||||
counter -= s->cmp;
|
counter -= s->cmp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue