[openib-general] [PATCH 6/13] Re-write rdma_resolve_route error cases

Krishna Kumar krkumar2 at in.ibm.com
Wed Oct 11 21:53:48 PDT 2006


diff -ruNp org/drivers/infiniband/core/cma.c new/drivers/infiniband/core/cma.c
--- org/drivers/infiniband/core/cma.c	2006-10-09 16:40:04.000000000 +0530
+++ new/drivers/infiniband/core/cma.c	2006-10-09 16:52:03.000000000 +0530
@@ -1435,13 +1435,10 @@ int rdma_resolve_route(struct rdma_cm_id
 		ret = -ENOSYS;
 		break;
 	}
-	if (ret)
-		goto err;
-
-	return 0;
-err:
-	cma_comp_exch(id_priv, CMA_ROUTE_QUERY, CMA_ADDR_RESOLVED);
-	cma_deref_id(id_priv);
+	if (ret) {
+		cma_comp_exch(id_priv, CMA_ROUTE_QUERY, CMA_ADDR_RESOLVED);
+		cma_deref_id(id_priv);
+	}
 	return ret;
 }
 EXPORT_SYMBOL(rdma_resolve_route);




More information about the general mailing list