Message ID | 4C865202.9020105@mellanox.co.il (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/opensm/opensm/osm_mtree.c b/opensm/opensm/osm_mtree.c index b5ce73b..693d0d5 100644 --- a/opensm/opensm/osm_mtree.c +++ b/opensm/opensm/osm_mtree.c @@ -73,11 +73,10 @@ void osm_mtree_destroy(IN osm_mtree_node_t * p_mtn) if (p_mtn == NULL) return; - if (p_mtn->child_array != NULL) - for (i = 0; i < p_mtn->max_children; i++) - if ((p_mtn->child_array[i] != NULL) && - (p_mtn->child_array[i] != OSM_MTREE_LEAF)) - osm_mtree_destroy(p_mtn->child_array[i]); + for (i = 0; i < p_mtn->max_children; i++) + if ((p_mtn->child_array[i] != NULL) && + (p_mtn->child_array[i] != OSM_MTREE_LEAF)) + osm_mtree_destroy(p_mtn->child_array[i]); free(p_mtn); }