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.depull/1309/head
parent
66067c3c8a
commit
46958a7bac
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue