[openib-general] [PATCH TRIVIAL] opensm: remove unused local variable

Sasha Khapyorsky sashak at voltaire.com
Sun Dec 24 09:02:48 PST 2006


Remove unused local variable.

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

diff --git a/osm/opensm/osm_node.c b/osm/opensm/osm_node.c
index aba2e39..684eee6 100644
--- a/osm/opensm/osm_node.c
+++ b/osm/opensm/osm_node.c
@@ -97,7 +97,6 @@ osm_node_new(
   osm_node_t         *p_node;
   ib_smp_t        *p_smp;
   ib_node_info_t     *p_ni;
-  uint8_t            port_num;
   uint8_t            i;
   uint32_t        size;
 
@@ -108,7 +107,6 @@ osm_node_new(
   CL_ASSERT( p_smp->attr_id == IB_MAD_ATTR_NODE_INFO );
 
   p_ni = (ib_node_info_t*)ib_smp_get_payload_ptr( p_smp );
-  port_num = ib_node_info_get_local_port_num( p_ni );
 
   /*
     The node object already contains one physical port object.
-- 
1.4.4.2.gfc82d





More information about the general mailing list