hw/misc/stm32f4xx_syscfg: Fix copy/paste error
PATCH 1/1 hw/misc/stm32f4xx_syscfg: Fix copy/paste error
Missed in 870c034da0b, hopefully reported by Coverity.
Fixes Coverity CID 1412793 (Incorrect expression)
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- hw/misc/stm32f4xx_syscfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/misc/stm32f4xx_syscfg.c +1 -1
@@ -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);
Signature · 1 line
2.21.1
Quoted 5 lines · Philippe Mathieu-Daudé
Missed in
870c034da0b, hopefully reported by Coverity.Fixes Coverity CID 1412793 (Incorrect expression)Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Reviewed-by Alistair Francis <[email protected]>
Alistair
Quoted 21 lines
--- hw/misc/stm32f4xx_syscfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/misc/stm32f4xx_syscfg.c +1
-2@@ -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
Quoted 14 lines · Philippe Mathieu-Daudé
Missed in
870c034da0b, hopefully reported by Coverity.Fixes Coverity CID 1412793 (Incorrect expression)Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/misc/stm32f4xx_syscfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/misc/stm32f4xx_syscfg.c +0
-0
hw/misc/stm32f4xx_syscfg.c static void stm32f4xx_syscfg_set_irq(void *opaque, int irq, int level) · line 53
Quoted 8 lines
hw/misc/stm32f4xx_syscfg.c +1
-1@@ -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);
Reviewed-by Thomas Huth <[email protected]>
Quoted 4 lines · Philippe Mathieu-Daudé
Missed in
870c034da0b, hopefully reported by Coverity.Fixes Coverity CID 1412793 (Incorrect expression)Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Reviewed-by Alex Bennée <[email protected]>
Quoted 16 lines
--- hw/misc/stm32f4xx_syscfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/misc/stm32f4xx_syscfg.c +1
-1@@ -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);
Signature · 1 line
Alex Bennée
Peter Maydell
AppliedQuoted 14 lines · Philippe Mathieu-Daudé
Missed in
870c034da0b, hopefully reported by Coverity.Fixes Coverity CID 1412793 (Incorrect expression)Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/misc/stm32f4xx_syscfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/misc/stm32f4xx_syscfg.c +0
-0
hw/misc/stm32f4xx_syscfg.c static void stm32f4xx_syscfg_set_irq(void *opaque, int irq, int level) · line 52
Quoted 7 lines
hw/misc/stm32f4xx_syscfg.c +1
-1@@ -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);
Applied to target-arm.next, thanks.
-- PMM