[ofa-general] [PATCH] opensm/osm_mcast_mgr: OSM_SIGNAL_NONE is not in use anymore

Sasha Khapyorsky sashak at voltaire.com
Thu Feb 7 19:57:05 PST 2008


Nobody refers OSM_SIGNAL_NONE, osm_mcast_mgr_process_mgroups() is not
running in a loop - no special need to track empty queues.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm/osm_mcast_mgr.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c
index 1178522..ca42a9f 100644
--- a/opensm/opensm/osm_mcast_mgr.c
+++ b/opensm/opensm/osm_mcast_mgr.c
@@ -1376,11 +1376,6 @@ osm_signal_t osm_mcast_mgr_process_mgroups(osm_mcast_mgr_t * p_mgr)
 	/* we need a lock to make sure the p_mgrp is not change other ways */
 	CL_PLOCK_EXCL_ACQUIRE(p_mgr->p_lock);
 
-	if (cl_is_qlist_empty(p_list)) {
-		CL_PLOCK_RELEASE(p_mgr->p_lock);
-		return OSM_SIGNAL_NONE;
-	}
-
 	while (!cl_is_qlist_empty(p_list)) {
 		ctx = (osm_mcast_mgr_ctxt_t *) cl_qlist_remove_head(p_list);
 		req_type = ctx->req_type;
-- 
1.5.4.rc5




More information about the general mailing list