From 6de973daae131a5636b38890e1ba0ae69a649546 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 9 Mar 2015 17:31:32 +0900 Subject: [PATCH] coll/sm: remove unused value as reported by Coverity with CID 1269962 --- ompi/mca/coll/sm/coll_sm_module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ompi/mca/coll/sm/coll_sm_module.c b/ompi/mca/coll/sm/coll_sm_module.c index f33ee4b195..1bd83f6ca3 100644 --- a/ompi/mca/coll/sm/coll_sm_module.c +++ b/ompi/mca/coll/sm/coll_sm_module.c @@ -13,7 +13,7 @@ * Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2010-2012 Los Alamos National Security, LLC. * 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. * $COPYRIGHT$ * @@ -252,7 +252,7 @@ int ompi_coll_sm_lazy_enable(mca_coll_base_module_t *module, #if OPAL_HAVE_HWLOC opal_hwloc_base_memory_segment_t *maffinity; #endif - int parent, min_child, max_child, num_children; + int parent, min_child, num_children; unsigned char *base = NULL; 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) { /* Leaves */ min_child = -1; - max_child = -1; num_children = 0; } else { /* Interior nodes */ + int max_child; min_child = root * num_children + 1; max_child = root * num_children + num_children; if (max_child >= size) {