[openib-general] [PATCH][TRIVIAL] OpenSM/osm_pkey_mgr.c: In pkey_mgr_get_physp_max_blocks, use routine rather than accessing structure member directly
Hal Rosenstock
halr at voltaire.com
Tue Jun 27 10:25:31 PDT 2006
OpenSM/osm_pkey_mgr.c: In pkey_mgr_get_physp_max_blocks, use routine
rather than accessing structure member directly
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: opensm/osm_pkey_mgr.c
===================================================================
--- opensm/osm_pkey_mgr.c (revision 8220)
+++ opensm/osm_pkey_mgr.c (working copy)
@@ -81,7 +81,7 @@ pkey_mgr_get_physp_max_blocks(
num_pkeys = cl_ntoh16( p_node->node_info.partition_cap );
else
{
- p_sw = osm_get_switch_by_guid( p_subn, p_node->node_info.node_guid );
+ p_sw = osm_get_switch_by_guid( p_subn, osm_node_get_node_guid( p_node ) );
if (p_sw)
num_pkeys = cl_ntoh16( p_sw->switch_info.enforce_cap );
}
More information about the general
mailing list