[openib-general] [PATCH 11/13] Re-write rdma_accept error cases

Krishna Kumar krkumar2 at in.ibm.com
Wed Oct 11 21:54:21 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
@@ -2054,13 +2054,10 @@ int rdma_accept(struct rdma_cm_id *id, s
 		break;
 	}
 
-	if (ret)
-		goto reject;
-
-	return 0;
-reject:
-	cma_modify_qp_err(id);
-	rdma_reject(id, NULL, 0);
+	if (ret) {
+		cma_modify_qp_err(id);
+		rdma_reject(id, NULL, 0);
+	}
 	return ret;
 }
 EXPORT_SYMBOL(rdma_accept);




More information about the general mailing list