Skip to content

Commit 46958a7

Browse files
committed
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 <tglx@linutronix.de> Tested-by: Liangyan <liangyan.peng@bytedance.com> Link: https://lore.kernel.org/all/20250718185311.884314473@linutronix.de
1 parent 66067c3 commit 46958a7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

kernel/irq/chip.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,11 @@ static bool irq_check_poll(struct irq_desc *desc)
466466

467467
static bool irq_can_handle_pm(struct irq_desc *desc)
468468
{
469-
unsigned int mask = IRQD_IRQ_INPROGRESS | IRQD_WAKEUP_ARMED;
470-
471469
/*
472470
* If the interrupt is not in progress and is not an armed
473471
* wakeup interrupt, proceed.
474472
*/
475-
if (!irqd_has_set(&desc->irq_data, mask))
473+
if (!irqd_has_set(&desc->irq_data, IRQD_IRQ_INPROGRESS | IRQD_WAKEUP_ARMED))
476474
return true;
477475

478476
/*

0 commit comments

Comments
 (0)