]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
librdmacm: Remove unused 'ib' variable from ucma_init
authorSean Hefty <sean.hefty@intel.com>
Thu, 19 Jul 2012 17:13:50 +0000 (10:13 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 19 Jul 2012 17:13:50 +0000 (10:13 -0700)
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c

index 86dd7876149c9c45bb3985de2b33a87ac15a170a..bad8bce32e0c91590a0c1b921bc199c4eb81c97b 100755 (executable)
--- a/src/cma.c
+++ b/src/cma.c
@@ -206,7 +206,7 @@ int ucma_init(void)
        struct ibv_device **dev_list = NULL;
        struct cma_device *cma_dev;
        struct ibv_device_attr attr;
-       int i, ret, dev_cnt, ib;
+       int i, ret, dev_cnt;
 
        /* Quick check without lock to see if we're already initialized */
        if (cma_dev_cnt)
@@ -241,7 +241,7 @@ int ucma_init(void)
                goto err2;
        }
 
-       for (i = 0, ib = 0; dev_list[i];) {
+       for (i = 0; dev_list[i];) {
                cma_dev = &cma_dev_array[i];
 
                cma_dev->guid = ibv_get_device_guid(dev_list[i]);
@@ -271,7 +271,6 @@ int ucma_init(void)
                cma_dev->max_qpsize = attr.max_qp_wr;
                cma_dev->max_initiator_depth = (uint8_t) attr.max_qp_init_rd_atom;
                cma_dev->max_responder_resources = (uint8_t) attr.max_qp_rd_atom;
-               ib += (cma_dev->verbs->device->transport_type == IBV_TRANSPORT_IB);
        }
 
        cma_dev_cnt = dev_cnt;