diff mbox

[v1,for-next,11/15] IB/usnic: Remove extraneous if check

Message ID 1389307663-11296-12-git-send-email-umalhi@cisco.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Upinder Malhi (umalhi) Jan. 9, 2014, 10:47 p.m. UTC
Remove extraneous if (chunk->cnt) condition.  The code will
not go into the next for loop if chunk->cnt is 0.

Signed-off-by: Upinder Malhi <umalhi@cisco.com>
---
 drivers/infiniband/hw/usnic/usnic_vnic.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/infiniband/hw/usnic/usnic_vnic.c b/drivers/infiniband/hw/usnic/usnic_vnic.c
index 5a50acb..74e4e5b 100644
--- a/drivers/infiniband/hw/usnic/usnic_vnic.c
+++ b/drivers/infiniband/hw/usnic/usnic_vnic.c
@@ -102,8 +102,6 @@  int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf,
 	spin_lock(&vnic->res_lock);
 	for (i = 0; i < ARRAY_SIZE(vnic->chunks); i++) {
 		chunk = &vnic->chunks[i];
-		if (chunk->cnt == 0)
-			continue;
 		for (j = 0; j < chunk->cnt; j++) {
 			res = chunk->res[j];
 			offset += scnprintf(buf + offset, buf_sz - offset,