14
14
* reserved.
15
15
* Copyright (c) 2013-2020 Intel, Inc. All rights reserved.
16
16
* Copyright (c) 2015-2020 Cisco Systems, Inc. All rights reserved.
17
- * Copyright (c) 2020 Amazon.com, Inc. or its affiliates. All Rights
17
+ * Copyright (c) 2020-2022 Amazon.com, Inc. or its affiliates. All Rights
18
18
* Copyright (c) 2018-2020 Triad National Security, LLC. All rights
19
19
* reserved.
20
20
* $COPYRIGHT$
@@ -70,7 +70,7 @@ static int mca_pml_base_finalize (void) {
70
70
int mca_pml_base_select (bool enable_progress_threads ,
71
71
bool enable_mpi_threads )
72
72
{
73
- int i , priority = 0 , best_priority = 0 , num_pml = 0 , ret = 0 ;
73
+ int i , priority = 0 , best_priority = -1 , ret = 0 ;
74
74
opal_list_item_t * item = NULL ;
75
75
mca_base_component_list_item_t * cli = NULL ;
76
76
mca_pml_base_component_t * component = NULL , * best_component = NULL ;
@@ -82,9 +82,6 @@ int mca_pml_base_select(bool enable_progress_threads,
82
82
/* Traverse the list of available components; call their init
83
83
functions. */
84
84
85
- best_priority = -1 ;
86
- best_component = NULL ;
87
- module = NULL ;
88
85
OBJ_CONSTRUCT (& opened , opal_list_t );
89
86
OPAL_LIST_FOREACH (cli , & ompi_pml_base_framework .framework_components , mca_base_component_list_item_t ) {
90
87
component = (mca_pml_base_component_t * ) cli -> cli_component ;
@@ -121,9 +118,6 @@ int mca_pml_base_select(bool enable_progress_threads,
121
118
continue ;
122
119
}
123
120
124
- /* this is a pml that could be considered */
125
- num_pml ++ ;
126
-
127
121
/* Init component to get its priority */
128
122
opal_output_verbose ( 10 , ompi_pml_base_framework .framework_output ,
129
123
"select: initializing %s component %s" ,
0 commit comments