[ofa-general] ***SPAM*** [PATCH] opensm/osm_sa_informinfo.c: Eliminate duplicated calls to osm_log_is_active

Hal Rosenstock hnrose at comcast.net
Fri Apr 17 08:33:00 PDT 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/opensm/osm_sa_informinfo.c b/opensm/opensm/osm_sa_informinfo.c
index a41e4ed..c31d3d4 100644
--- a/opensm/opensm/osm_sa_informinfo.c
+++ b/opensm/opensm/osm_sa_informinfo.c
@@ -345,9 +345,7 @@ static void infr_rcv_process_get_method(osm_sa_t * sa, IN osm_madw_t * p_madw)
 		goto Exit;
 	}
 
-	if (osm_log_is_active(sa->p_log, OSM_LOG_DEBUG))
-		osm_dump_inform_info_record(sa->p_log, p_rcvd_rec,
-					    OSM_LOG_DEBUG);
+	osm_dump_inform_info_record(sa->p_log, p_rcvd_rec, OSM_LOG_DEBUG);
 
 	cl_qlist_init(&rec_list);
 
@@ -410,9 +408,7 @@ static void infr_rcv_process_set_method(osm_sa_t * sa, IN osm_madw_t * p_madw)
 	    (ib_inform_info_t *) ib_sa_mad_get_payload_ptr(p_sa_mad);
 
 #if 0
-	if (osm_log_is_active(sa->p_log, OSM_LOG_DEBUG))
-		osm_dump_inform_info(sa->p_log, p_recvd_inform_info,
-				     OSM_LOG_DEBUG);
+	osm_dump_inform_info(sa->p_log, p_recvd_inform_info, OSM_LOG_DEBUG);
 #endif
 
 	/* Grab the lock */



More information about the general mailing list