diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-01-28 17:08:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 21:19:11 -0400 |
commit | 70044df4111e1afbff91a731785673aeb42a34fd (patch) | |
tree | 11a1575344cc5ad90326a280c3f7e3cc975f1e51 /arch/sparc/kernel | |
parent | a625a12a763fa5cfe9775aa354790782d89efb6f (diff) |
sparc32, sun4d: add comment in empty statement in sun4d_request_irq()
This looked like a bug to me.
Add a comment so next reader is hopefully less confused.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-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; |