Skip to contentSkip to conversation

IB/qib: fix a do nothing for loop

PATCH In review Dan Carpenter 2 participants 2 messages Feb 20, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/qib: fix a do nothing for loop

We accidentally deleted a semi-colon here and changed this do-nothing loop into a do-something loop.

Fixes ff93905fb92d ('IB/qib: Fix checkpatch warnings')
drivers/infiniband/hw/qib/qib_wc_x86_64.c +1 -1
index 4fcf2459..81b225f 100644
@@ -92,7 +92,7 @@ int qib_enable_wc(struct qib_devdata *dd)
 	}
 
 	for (bits = 0; !(piolen & (1ULL << bits)); bits++)
-		/* do nothing */
+		; /* do nothing */
 
 	if (piolen != (1ULL << bits)) {
 		piolen >>= bits;
#1 lore raw
Quoted 2 lines · Dan Carpenter

We accidentally deleted a semi-colon here and changed this do-nothing loop into a do-something loop.

Thanks! I folded this into the original "cleanup" patch.