From: Thomas Gleixner Date: Fri, 18 Jul 2025 18:54:06 +0000 (+0200) Subject: genirq: Remove pointless local variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46958a7bac2d32fda43fd7cd1858aa414640fbd1;p=thirdparty%2Flinux.git genirq: Remove pointless local variable The variable is only used at one place, which can simply take the constant as function argument. Signed-off-by: Thomas Gleixner Tested-by: Liangyan Link: https://lore.kernel.org/all/20250718185311.884314473@linutronix.de --- diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 2b274007e8bab..5bb26fc5368ba 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -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; /*