hw/misc/stm32f4xx_syscfg: Fix copy/paste error
Missed in 870c034da0
, hopefully reported by Coverity.
Fixes: Coverity CID 1412793 (Incorrect expression)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200121213853.9601-1-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
538baab245
commit
a4abb6f206
@ -47,7 +47,7 @@ static void stm32f4xx_syscfg_set_irq(void *opaque, int irq, int level)
|
||||
STM32F4xxSyscfgState *s = opaque;
|
||||
int icrreg = irq / 4;
|
||||
int startbit = (irq & 3) * 4;
|
||||
uint8_t config = config = irq / 16;
|
||||
uint8_t config = irq / 16;
|
||||
|
||||
trace_stm32f4xx_syscfg_set_irq(irq / 16, irq % 16, level);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user