[openib-general] [PATCH] [TRIVIAL] cma.c: Remove compiler warning

Pradipta Kumar Banerjee bpradip at in.ibm.com
Thu Jun 22 00:25:27 PDT 2006


This removes a compile warning : `ret' might be used uninitialized in this
function
This patch is against the IWARP branch of the code

Signed-off-by: Pradipta Kumar Banerjee <bpradipt at in.ibm.com>

---

Index: core/cma.c
==================================================================
--- cma.org	2006-06-22 12:45:33.000000000 +0530
+++ cma.c	2006-06-22 12:45:51.000000000 +0530
@@ -2066,6 +2066,7 @@ int rdma_disconnect(struct rdma_cm_id *i
 		ret = iw_cm_disconnect(id_priv->cm_id.iw, 0);
 		break;
 	default:
+		ret = -ENOSYS;
 		break;
 	}
 out:





More information about the general mailing list