Skip to content

Commit b71e85b

Browse files
committed
pml_ucx: fix return code from mca_pml_ucx_init() error flow
Signed-off-by: Yossi Itigin <yosefe@mellanox.com>
1 parent 80348b9 commit b71e85b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/pml/ucx/pml_ucx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,13 @@ int mca_pml_ucx_init(void)
253253
PML_UCX_VERBOSE(2, "created ucp context %p, worker %p",
254254
(void *)ompi_pml_ucx.ucp_context,
255255
(void *)ompi_pml_ucx.ucp_worker);
256-
return rc;
256+
return OMPI_SUCCESS;
257257

258258
err_destroy_worker:
259259
ucp_worker_destroy(ompi_pml_ucx.ucp_worker);
260260
ompi_pml_ucx.ucp_worker = NULL;
261261
err:
262-
return OMPI_ERROR;
262+
return rc;
263263
}
264264

265265
int mca_pml_ucx_cleanup(void)

0 commit comments

Comments
 (0)