Message ID | 1389307663-11296-12-git-send-email-umalhi@cisco.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
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,
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(-)