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:
Laurentiu Mihalcea 2024-10-15 00:40:56 +03:00 committed by Carles Cufí
parent cdd5635002
commit e2872c002a
1 changed files with 1 additions and 0 deletions

View File

@ -518,6 +518,7 @@ int z_soc_irq_is_enabled(unsigned int irq)
}
parent_irq = irq_parent_level_2(irq);
enabled = false;
/* find dispatcher responsible for this interrupt */
for (i = 0; i < ARRAY_SIZE(dispatchers); i++) {