sched/irq/irq_dispatch.c: Fix an error found in build testing.

This commit is contained in:
Gregory Nutt 2018-08-24 16:12:31 -06:00
parent 2aa208ccf0
commit 38452007a3
1 changed files with 2 additions and 3 deletions

View File

@ -110,8 +110,8 @@ void irq_dispatch(int irq, FAR void *context)
#else
if (g_irqvector[irq].handler)
{
vector = g_irqvector[ndx].handler;
arg = g_irqvector[ndx].arg;
vector = g_irqvector[irq].handler;
arg = g_irqvector[irq].arg;
}
INCR_COUNT(irq);
@ -129,4 +129,3 @@ void irq_dispatch(int irq, FAR void *context)
vector(irq, context, arg);
}