]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
genirq: Remove pointless local variable
authorThomas Gleixner <tglx@linutronix.de>
Fri, 18 Jul 2025 18:54:06 +0000 (20:54 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 22 Jul 2025 12:30:42 +0000 (14:30 +0200)
The variable is only used at one place, which can simply take the constant
as function argument.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Liangyan <liangyan.peng@bytedance.com>
Link: https://lore.kernel.org/all/20250718185311.884314473@linutronix.de
kernel/irq/chip.c

index 2b274007e8babc000119ebaba27325fc703749fd..5bb26fc5368ba978d2aeff759c2f8aec7d9fdc54 100644 (file)
@@ -466,13 +466,11 @@ static bool irq_check_poll(struct irq_desc *desc)
 
 static bool irq_can_handle_pm(struct irq_desc *desc)
 {
-       unsigned int mask = IRQD_IRQ_INPROGRESS | IRQD_WAKEUP_ARMED;
-
        /*
         * If the interrupt is not in progress and is not an armed
         * wakeup interrupt, proceed.
         */
-       if (!irqd_has_set(&desc->irq_data, mask))
+       if (!irqd_has_set(&desc->irq_data, IRQD_IRQ_INPROGRESS | IRQD_WAKEUP_ARMED))
                return true;
 
        /*