[openib-general] [PATCH TRIVIAL] opensm: remove unused p_subn->node_lid_tbl field

Sasha Khapyorsky sashak at voltaire.com
Sun Jan 28 16:50:03 PST 2007


This removes unused node_lid_tbl field in osm_subn_t structure.

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

diff --git a/osm/include/opensm/osm_subnet.h b/osm/include/opensm/osm_subnet.h
index c256621..a6ffd45 100644
--- a/osm/include/opensm/osm_subnet.h
+++ b/osm/include/opensm/osm_subnet.h
@@ -512,7 +512,6 @@ typedef struct _osm_subn
   cl_list_t                light_sweep_physp_list;
   cl_qlist_t		   sa_sr_list;
   cl_qlist_t		   sa_infr_list;
-  cl_ptr_vector_t	   node_lid_tbl;
   cl_ptr_vector_t	   port_lid_tbl;
   ib_net16_t		   master_sm_base_lid;
   ib_net16_t		   sm_base_lid;
diff --git a/osm/opensm/osm_subnet.c b/osm/opensm/osm_subnet.c
index 221a367..f2e909b 100644
--- a/osm/opensm/osm_subnet.c
+++ b/osm/opensm/osm_subnet.c
@@ -73,7 +73,6 @@ osm_subn_construct(
   IN osm_subn_t* const p_subn )
 {
   memset( p_subn, 0, sizeof(*p_subn) );
-  cl_ptr_vector_construct( &p_subn->node_lid_tbl );
   cl_ptr_vector_construct( &p_subn->port_lid_tbl );
   cl_qmap_init( &p_subn->sw_guid_tbl );
   cl_qmap_init( &p_subn->node_guid_tbl );
@@ -113,8 +112,6 @@ osm_subn_destroy(
     osm_node_delete( &p_node );
   }
 
-  cl_ptr_vector_destroy( &p_subn->node_lid_tbl );
-
   p_next_port = (osm_port_t*)cl_qmap_head( &p_subn->port_guid_tbl );
   while( p_next_port != (osm_port_t*)cl_qmap_end( &p_subn->port_guid_tbl ) )
   {
@@ -186,23 +183,12 @@ osm_subn_init(
 
   p_subn->p_osm = p_osm;
 
-  status = cl_ptr_vector_init( &p_subn->node_lid_tbl,
-                               OSM_SUBNET_VECTOR_MIN_SIZE,
-                               OSM_SUBNET_VECTOR_GROW_SIZE );
-  if( status != CL_SUCCESS )
-    return( status );
-
   status = cl_ptr_vector_init( &p_subn->port_lid_tbl,
                                OSM_SUBNET_VECTOR_MIN_SIZE,
                                OSM_SUBNET_VECTOR_GROW_SIZE );
   if( status != CL_SUCCESS )
     return( status );
 
-  status = cl_ptr_vector_set_capacity( &p_subn->node_lid_tbl,
-                                       OSM_SUBNET_VECTOR_CAPACITY );
-  if( status != CL_SUCCESS )
-    return( status );
-
   status = cl_ptr_vector_set_capacity( &p_subn->port_lid_tbl,
                                        OSM_SUBNET_VECTOR_CAPACITY );
   if( status != CL_SUCCESS )
@@ -212,7 +198,6 @@ osm_subn_init(
     LID zero is not valid.  NULL out this entry for the
     convenience of other code.
   */
-  cl_ptr_vector_set( &p_subn->node_lid_tbl, 0, NULL );
   cl_ptr_vector_set( &p_subn->port_lid_tbl, 0, NULL );
 
   p_subn->opt = *p_opt;
-- 
1.5.0.rc2.g11a3





More information about the general mailing list