[PATCH 21/25] irqchip/armada-370-xp: Simplify mpic_resume() code
Marek Behún
kabel at kernel.org
Mon Jul 1 10:02:45 PDT 2024
Simplify the mpic_resume() function a little bit.
Signed-off-by: Marek Behún <kabel at kernel.org>
---
drivers/irqchip/irq-armada-370-xp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c
index b08f49516bee..4b4c0dae72b0 100644
--- a/drivers/irqchip/irq-armada-370-xp.c
+++ b/drivers/irqchip/irq-armada-370-xp.c
@@ -707,10 +707,9 @@ static void mpic_resume(void)
/* Re-enable interrupts */
for (irq_hw_number_t i = 0; i < mpic_domain->hwirq_max; i++) {
+ unsigned int virq = irq_linear_revmap(mpic_domain, i);
struct irq_data *data;
- int virq;
- virq = irq_linear_revmap(mpic_domain, i);
if (!virq)
continue;
--
2.44.2
More information about the linux-arm-kernel
mailing list