1
1

coll/ml: fix valgrind warning about reading uninitialed value

This isn't causing any errors that I know about but it does fix an
annoying valgrind warning. Simple fix, no review required.

cmr=v1.7.5:reviewer=ompi-rm1.7

This commit was SVN r31130.
Этот коммит содержится в:
Nathan Hjelm 2014-03-18 21:26:17 +00:00
родитель d9c8bf3785
Коммит 8b2d723fd4

Просмотреть файл

@ -639,8 +639,7 @@ static void ml_init_k_nomial_trees(mca_coll_ml_topology_t *topo, int *list_of_ra
/* first thing I want to know is where does the first level end */
level_one_knt = 0;
while( 0 == array_of_all_subgroup_ranks[level_one_knt].level_in_hierarchy &&
level_one_knt < num_total_subgroups){
while (level_one_knt < num_total_subgroups && 0 == array_of_all_subgroup_ranks[level_one_knt].level_in_hierarchy) {
level_one_knt++;
}