[openib-general] [PATCH] [TRIVIAL] CM: remove unused call

Sean Hefty mshefty at ichips.intel.com
Wed Jan 19 01:33:44 PST 2005


Removes an unneeded function.  Note that there are still 3 other unused
calls, but I these may be needed by functionality that's currently
missing, so I'm holding off removing those for now.

signed-off-by: Sean Hefty <sean.hefty at intel.com>

Index: core/cm.c
===================================================================
--- core/cm.c	(revision 1574)
+++ core/cm.c	(working copy)
@@ -309,20 +309,6 @@
 	return NULL;
 }
 
-static struct cm_id_private * cm_acquire_id_by_service(u64 service_id)
-{
-	struct cm_id_private *cm_id_priv;
-	unsigned long flags;
-
-	spin_lock_irqsave(&cm.lock, flags);
-	cm_id_priv = cm_find_service(service_id);
-	if (cm_id_priv)
-		atomic_inc(&cm_id_priv->refcount);
-	spin_unlock_irqrestore(&cm.lock, flags);
-
-	return cm_id_priv;
-}
-
 static struct cm_id_private * cm_insert_remote_id(struct cm_id_private
 						  *cm_id_priv)
 {



More information about the general mailing list