[openib-general] [PATCHv2][MINOR] OpenSM/osm_inform.c: In osm_infr_new, remove unneeded call to osm_infr_construct

Hal Rosenstock halr at voltaire.com
Wed Dec 6 06:07:53 PST 2006


OpenSM/osm_inform.c: In osm_infr_new, remove unneeded call to
osm_infr_construct

This is safer in the long term than the previous patch to remove the
memset from osm_infr_construct.

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

diff --git a/osm/opensm/osm_inform.c b/osm/opensm/osm_inform.c
index 92647ef..cd40e5d 100644
--- a/osm/opensm/osm_inform.c
+++ b/osm/opensm/osm_inform.c
@@ -110,7 +110,6 @@ osm_infr_new(
   p_infr = (osm_infr_t*)malloc( sizeof(osm_infr_t) );
   if( p_infr )
   {
-    osm_infr_construct( p_infr );
     osm_infr_init( p_infr, p_infr_rec );
   }
 







More information about the general mailing list