[openib-general] [PATCH] osm: Fixing function return type in osm_switch.h

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Mon Jan 1 05:35:08 PST 2007


Hi Hal

Fixing osm_switch_get_mft_max_block_in_use() function return type
and updating the comments accordingly.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 osm/include/opensm/osm_switch.h |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/osm/include/opensm/osm_switch.h b/osm/include/opensm/osm_switch.h
index ab92ffd..bd4a6b0 100644
--- a/osm/include/opensm/osm_switch.h
+++ b/osm/include/opensm/osm_switch.h
@@ -1130,7 +1130,7 @@ osm_switch_get_mft_max_block(
 *
 * SYNOPSIS
 */
-static inline uint16_t
+static inline int16_t
 osm_switch_get_mft_max_block_in_use(
 	IN osm_switch_t* const p_sw )
 {
@@ -1142,7 +1142,13 @@ osm_switch_get_mft_max_block_in_use(
 *	p_sw
 *		[in] Pointer to the switch object.
 *
-* RETURN VALUE
+* RETURN VALUES
+*	Returns the maximum block ID in use in this switche's table.
+*	A value of -1 indicates no blocks are in use.
+*
+* NOTES
+*
+* SEE ALSO
 */
 
 /****f* OpenSM: Switch/osm_switch_get_mft_max_position
-- 
1.4.4.1.GIT





More information about the general mailing list