diff mbox

IB/qib: fix a do nothing for loop

Message ID 20150220105600.GE7895@mwanda (mailing list archive)
State Rejected
Headers show

Commit Message

Dan Carpenter Feb. 20, 2015, 10:56 a.m. UTC
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')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Roland Dreier Feb. 20, 2015, 5:04 p.m. UTC | #1
On Fri, Feb 20, 2015 at 2:56 AM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/infiniband/hw/qib/qib_wc_x86_64.c b/drivers/infiniband/hw/qib/qib_wc_x86_64.c
index 4fcf2459..81b225f 100644
--- a/drivers/infiniband/hw/qib/qib_wc_x86_64.c
+++ b/drivers/infiniband/hw/qib/qib_wc_x86_64.c
@@ -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;