Skip to contentSkip to conversation

sparc32,sun4d: add comment in empty statement in sun4d_request_irq()

PATCH Superseded Sam Ravnborg 1 participant 1 message Jan 23, 2011 SPARC + UltraSPARC (sparc/sparc64)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 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.

---
 arch/sparc/kernel/sun4d_irq.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/sparc/kernel/sun4d_irq.c +2 -1
index 6db2fba..fbcbada 100644
@@ -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;
Signature · 1 line
1.6.0.6