Skip to contentSkip to conversation

fix a typo in for loop

PATCH In review Paolo Ornati 2 participants 2 messages Apr 11, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix a typo in for loop

Fix a typo in a for loop, "i" should be "k".

---

arch/x86_64/pci/mmconfig.c +1 -1
index b493ed9..a1f88f0 100644
@@ -142,7 +142,7 @@ static __init void unreachable_devices(v
 {
 	int i, k;
 	/* Use the max bus number from ACPI here? */
-	for (k = 0; i < MAX_CHECK_BUS; k++) {
+	for (k = 0; k < MAX_CHECK_BUS; k++) {
 		for (i = 0; i < 32; i++) {
 			u32 val1;
 			char __iomem *addr;
Signature · 2 lines
	Paolo Ornati
	Linux 2.6.16.2 on x86_64
#1 lore raw
Quoted 1 line · Paolo Ornati

Fix a typo in a for loop, "i" should be "k".

Fix is already submitted, but thanks.
-Andi