aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorKrishna Kumar <krkumar2@in.ibm.com>2006-10-16 00:39:08 -0400
committerRoland Dreier <rolandd@cisco.com>2006-11-29 18:33:04 -0500
commite4022274cf8df1f78f9e20ba7e199a9edf655422 (patch)
treec774fb6c531f1b99d9b7d4d3e99e0a82b2531555 /drivers/infiniband
parente82153b54d75af31d5d4a84efe441e5719f34cfc (diff)
RDMA/cma: Remove redundant check in cma_add_one
Remove redundant check of node_guid in cma_add_one(). Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com> Acked-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/cma.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 4975d8154a78..9aba4ea94933 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -2122,8 +2122,6 @@ static void cma_add_one(struct ib_device *device)
2122 2122
2123 cma_dev->device = device; 2123 cma_dev->device = device;
2124 cma_dev->node_guid = device->node_guid; 2124 cma_dev->node_guid = device->node_guid;
2125 if (!cma_dev->node_guid)
2126 goto err;
2127 2125
2128 init_completion(&cma_dev->comp); 2126 init_completion(&cma_dev->comp);
2129 atomic_set(&cma_dev->refcount, 1); 2127 atomic_set(&cma_dev->refcount, 1);
@@ -2135,9 +2133,6 @@ static void cma_add_one(struct ib_device *device)
2135 list_for_each_entry(id_priv, &listen_any_list, list) 2133 list_for_each_entry(id_priv, &listen_any_list, list)
2136 cma_listen_on_dev(id_priv, cma_dev); 2134 cma_listen_on_dev(id_priv, cma_dev);
2137 mutex_unlock(&lock); 2135 mutex_unlock(&lock);
2138 return;
2139err:
2140 kfree(cma_dev);
2141} 2136}
2142 2137
2143static int cma_remove_id_dev(struct rdma_id_private *id_priv) 2138static int cma_remove_id_dev(struct rdma_id_private *id_priv)