[openib-general] [PATCH][MINOR] OpenSM/SA client: In osm_vendor_ibumad_sa.c:osmv_query_sa, eliminate redundant code

Hal Rosenstock halr at voltaire.com
Thu Jun 22 06:24:31 PDT 2006


OpenSM/SA client: In osm_vendor_ibumad_sa.c:osmv_query_sa, eliminate
redundant code

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: libvendor/osm_vendor_ibumad_sa.c
===================================================================
--- libvendor/osm_vendor_ibumad_sa.c	(revision 8174)
+++ libvendor/osm_vendor_ibumad_sa.c	(working copy)
@@ -655,7 +655,6 @@ osmv_query_sa(
   case OSMV_QUERY_ALL_SVC_RECS:
     osm_log( p_log, OSM_LOG_DEBUG,
              "osmv_query_sa DBG:001 %s", "SVC_REC_BY_NAME\n" );
-    sa_mad_data.method = IB_MAD_METHOD_GETTABLE;
     sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD;
     sa_mad_data.attr_offset =
       ib_get_attr_offset( sizeof( ib_service_record_t ) );
@@ -701,7 +700,6 @@ osmv_query_sa(
   case OSMV_QUERY_NODE_REC_BY_NODE_GUID:
     osm_log( p_log, OSM_LOG_DEBUG,
              "osmv_query_sa DBG:001 %s","NODE_REC_BY_NODE_GUID\n" );
-    sa_mad_data.method = IB_MAD_METHOD_GETTABLE;
     sa_mad_data.attr_id = IB_MAD_ATTR_NODE_RECORD;
     sa_mad_data.attr_offset =
       ib_get_attr_offset( sizeof( ib_node_record_t ) );







More information about the general mailing list