]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/misc/stm32f4xx_syscfg: Fix copy/paste error
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 23 Jan 2020 15:22:40 +0000 (15:22 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Jan 2020 15:34:04 +0000 (15:34 +0000)
Missed in 870c034da0b, 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>
hw/misc/stm32f4xx_syscfg.c

index dbcdca59f8e4e686d8b102e043e7c95480822ca6..f960e4ea1eebcc71b834b95a89eda4da4c1773fb 100644 (file)
@@ -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);