All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/misc/stm32f4xx_syscfg: Fix copy/paste error
@ 2020-01-21 21:38 Philippe Mathieu-Daudé
  2020-01-21 22:19 ` Alistair Francis
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-01-21 21:38 UTC (permalink / raw)
  To: qemu-devel, Alistair Francis
  Cc: qemu-trivial, Peter Maydell, Philippe Mathieu-Daudé

Missed in 870c034da0b, hopefully reported by Coverity.

Fixes: Coverity CID 1412793 (Incorrect expression)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 hw/misc/stm32f4xx_syscfg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/misc/stm32f4xx_syscfg.c b/hw/misc/stm32f4xx_syscfg.c
index dbcdca59f8..f960e4ea1e 100644
--- a/hw/misc/stm32f4xx_syscfg.c
+++ b/hw/misc/stm32f4xx_syscfg.c
@@ -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);
 
-- 
2.21.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-23 18:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 21:38 [PATCH] hw/misc/stm32f4xx_syscfg: Fix copy/paste error Philippe Mathieu-Daudé
2020-01-21 22:19 ` Alistair Francis
2020-01-22  7:19 ` Thomas Huth
2020-01-22 10:26 ` Alex Bennée
2020-01-23 14:57 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.