coll/sm: remove unused value
as reported by Coverity with CID 1269962
Этот коммит содержится в:
родитель
1896d4fba7
Коммит
6de973daae
@ -13,7 +13,7 @@
|
|||||||
* Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2010-2012 Los Alamos National Security, LLC.
|
* Copyright (c) 2010-2012 Los Alamos National Security, LLC.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2014 Research Organization for Information Science
|
* Copyright (c) 2014-2015 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -252,7 +252,7 @@ int ompi_coll_sm_lazy_enable(mca_coll_base_module_t *module,
|
|||||||
#if OPAL_HAVE_HWLOC
|
#if OPAL_HAVE_HWLOC
|
||||||
opal_hwloc_base_memory_segment_t *maffinity;
|
opal_hwloc_base_memory_segment_t *maffinity;
|
||||||
#endif
|
#endif
|
||||||
int parent, min_child, max_child, num_children;
|
int parent, min_child, num_children;
|
||||||
unsigned char *base = NULL;
|
unsigned char *base = NULL;
|
||||||
const int num_barrier_buffers = 2;
|
const int num_barrier_buffers = 2;
|
||||||
|
|
||||||
@ -333,10 +333,10 @@ int ompi_coll_sm_lazy_enable(mca_coll_base_module_t *module,
|
|||||||
if ((root * num_children) + 1 >= size) {
|
if ((root * num_children) + 1 >= size) {
|
||||||
/* Leaves */
|
/* Leaves */
|
||||||
min_child = -1;
|
min_child = -1;
|
||||||
max_child = -1;
|
|
||||||
num_children = 0;
|
num_children = 0;
|
||||||
} else {
|
} else {
|
||||||
/* Interior nodes */
|
/* Interior nodes */
|
||||||
|
int max_child;
|
||||||
min_child = root * num_children + 1;
|
min_child = root * num_children + 1;
|
||||||
max_child = root * num_children + num_children;
|
max_child = root * num_children + num_children;
|
||||||
if (max_child >= size) {
|
if (max_child >= size) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user