Skip to content

Commit 34fca89

Browse files
sterling-tengMarc Zyngier
authored andcommitted
MIPS: irq: Avoid an unused-variable error
When CONFIG_IRQ_DOMAIN is set, there is a warning: arch/mips/kernel/irq.c:114:19: error: unused variable 'desc' [-Werror=unused-variable] 114 | struct irq_desc *desc; | ^~~~ This variable is unused, let's remove it. Signed-off-by: Yanteng Si <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0953fb2 commit 34fca89

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/mips/kernel/irq.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ void __irq_entry do_IRQ(unsigned int irq)
111111
#ifdef CONFIG_IRQ_DOMAIN
112112
void __irq_entry do_domain_IRQ(struct irq_domain *domain, unsigned int hwirq)
113113
{
114-
struct irq_desc *desc;
115-
116114
irq_enter();
117115
check_stack_overflow();
118116
generic_handle_domain_irq(domain, hwirq);

0 commit comments

Comments
 (0)