Skip to content

Commit

Permalink
sparc32, sun4d: add comment in empty statement in sun4d_request_irq()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Mar 17, 2011
1 parent a625a12 commit 70044df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/sparc/kernel/sun4d_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ int sun4d_request_irq(unsigned int irq,

if (action) {
if ((action->flags & IRQF_SHARED) && (irqflags & IRQF_SHARED)) {
for (tmp = action; tmp->next; tmp = tmp->next);
for (tmp = action; tmp->next; tmp = tmp->next)
/* find last entry - tmp used below */;
} else {
ret = -EBUSY;
goto out_unlock;
Expand Down

0 comments on commit 70044df

Please sign in to comment.