diff options
-rw-r--r-- | arch/sparc/kernel/sun4d_irq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index b2e3fbf7c6fa..609a13c85823 100644 --- a/arch/sparc/kernel/sun4d_irq.c +++ b/arch/sparc/kernel/sun4d_irq.c | |||
@@ -307,7 +307,8 @@ int sun4d_request_irq(unsigned int irq, | |||
307 | 307 | ||
308 | if (action) { | 308 | if (action) { |
309 | if ((action->flags & IRQF_SHARED) && (irqflags & IRQF_SHARED)) { | 309 | if ((action->flags & IRQF_SHARED) && (irqflags & IRQF_SHARED)) { |
310 | for (tmp = action; tmp->next; tmp = tmp->next); | 310 | for (tmp = action; tmp->next; tmp = tmp->next) |
311 | /* find last entry - tmp used below */; | ||
311 | } else { | 312 | } else { |
312 | ret = -EBUSY; | 313 | ret = -EBUSY; |
313 | goto out_unlock; | 314 | goto out_unlock; |