From b269dd59e35bcd97c84762ccba3a2f7ce92ac744 Mon Sep 17 00:00:00 2001 From: Alex Mikheev Date: Mon, 2 Nov 2015 16:48:26 +0200 Subject: [PATCH] OSHMEM/SPML/UCX: fixes typo in add_procs --- oshmem/mca/spml/ucx/spml_ucx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oshmem/mca/spml/ucx/spml_ucx.c b/oshmem/mca/spml/ucx/spml_ucx.c index b34e2561b5a..57161d0a544 100644 --- a/oshmem/mca/spml/ucx/spml_ucx.c +++ b/oshmem/mca/spml/ucx/spml_ucx.c @@ -192,7 +192,7 @@ int mca_spml_ucx_add_procs(oshmem_proc_t** procs, size_t nprocs) } err = ucp_worker_get_address(mca_spml_ucx.ucp_worker, &wk_local_addr, &wk_addr_len); - if (err == UCS_OK) { + if (err != UCS_OK) { goto error; } dump_address(my_rank, (char *)wk_local_addr, wk_addr_len);