[ofa-general] [PATCH TRIVIAL] opensm: remove unused osm_switch_is_leaf_lid() function

Sasha Khapyorsky sashak at voltaire.com
Sun Mar 4 08:21:15 PST 2007


Remove unused osm_switch_is_leaf_lid() function.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 osm/include/opensm/osm_switch.h |   36 ------------------------------------
 1 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/osm/include/opensm/osm_switch.h b/osm/include/opensm/osm_switch.h
index 4270904..7edacc4 100644
--- a/osm/include/opensm/osm_switch.h
+++ b/osm/include/opensm/osm_switch.h
@@ -213,42 +213,6 @@ osm_switch_new(
 *	Switch object, osm_switch_delete
 *********/
 
-/****f* OpenSM: Switch/osm_switch_is_leaf_lid
-* NAME
-*	osm_switch_is_leaf_lid
-*
-* DESCRIPTION
-*	Indicates if the specified LID is the switch's LID, or is a leaf
-*	of the switch.
-*
-* SYNOPSIS
-*/
-static inline boolean_t
-osm_switch_is_leaf_lid(
-	IN const osm_switch_t* const p_sw,
-	IN const uint16_t lid_ho )
-{	
-	return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ? FALSE :
-		(p_sw->hops[lid_ho][0] <= 1);
-}
-/*
-* PARAMETERS
-*	p_sw
-*		[in] Pointer to an osm_switch_t object.
-*
-*	lid_ho
-*		[in] LID (host order) to compare.
-*
-* RETURN VALUES
-*	TRUE if the LID is the switch's LID or is a leaf of the switch,
-*	FALSE otherwise.
-*
-* NOTES
-*
-* SEE ALSO
-*	Switch object
-*********/
-
 /****f* OpenSM: Switch/osm_switch_get_hop_count
 * NAME
 *	osm_switch_get_hop_count
-- 
1.5.0.1.26.gf5a92




More information about the general mailing list