drivers: intc: irqstr: initialize 'enabled' variable
Initialize the 'enabled' variable before using it. This fixes the following compilation warning: "warning: 'enabled' may be used uninitialized [-Wmaybe-uninitialized]" issued when compiling with `CONFIG_DEBUG` enabled. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com> Tested-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
parent
cdd5635002
commit
e2872c002a
|
@ -518,6 +518,7 @@ int z_soc_irq_is_enabled(unsigned int irq)
|
||||||
}
|
}
|
||||||
|
|
||||||
parent_irq = irq_parent_level_2(irq);
|
parent_irq = irq_parent_level_2(irq);
|
||||||
|
enabled = false;
|
||||||
|
|
||||||
/* find dispatcher responsible for this interrupt */
|
/* find dispatcher responsible for this interrupt */
|
||||||
for (i = 0; i < ARRAY_SIZE(dispatchers); i++) {
|
for (i = 0; i < ARRAY_SIZE(dispatchers); i++) {
|
||||||
|
|
Loading…
Reference in New Issue