From: Sam Ravnborg Date: Fri, 28 Jan 2011 22:08:23 +0000 (+0000) Subject: sparc32, sun4d: add comment in empty statement in sun4d_request_irq() X-Git-Tag: v2.6.39-rc1~459^2~10 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=70044df4111e1afbff91a731785673aeb42a34fd;p=~emulex%2Finfiniband.git 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 Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index b2e3fbf7c6f..609a13c8582 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, 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;