Skip to content

Commit f44e674

Browse files
authored
Merge pull request #4074 from bosilca/topic/coverity
Fix coverity complaints.
2 parents f8a02eb + 4e7c130 commit f44e674

File tree

2 files changed

+239
-176
lines changed

2 files changed

+239
-176
lines changed

ompi/mca/topo/treematch/topo_treematch_component.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ mca_topo_treematch_component_2_2_0_t mca_topo_treematch_component =
6262

6363
static int init_query(bool enable_progress_threads, bool enable_mpi_threads)
6464
{
65-
if(NULL == opal_hwloc_topology) {
66-
return OPAL_ERR_NOT_SUPPORTED;
67-
}
65+
/* The first time this function is called is too early in the process and
66+
* the HWLOC topology information is not available. Thus we should not check
67+
* for the topology here, but instead delay the check until we really need
68+
* the topology information.
69+
*/
6870
return OMPI_SUCCESS;
6971
}
7072

0 commit comments

Comments
 (0)