@@ -155,14 +155,7 @@ void opal_common_ucx_mca_proc_added(void)
155155
156156OPAL_DECLSPEC int opal_common_ucx_mca_pmix_fence_nb (int * fenced )
157157{
158- int ret = OPAL_SUCCESS ;
159-
160- if (OPAL_SUCCESS != (ret = opal_pmix .fence_nb (NULL , 0 ,
161- opal_common_ucx_mca_fence_complete_cb , (void * )fenced ))){
162- return ret ;
163- }
164-
165- return ret ;
158+ return opal_pmix .fence_nb (NULL , 0 , opal_common_ucx_mca_fence_complete_cb , (void * ) fenced );
166159}
167160
168161OPAL_DECLSPEC int opal_common_ucx_mca_pmix_fence (ucp_worker_h worker )
@@ -193,7 +186,7 @@ static void opal_common_ucx_wait_all_requests(void **reqs, int count, ucp_worker
193186 }
194187}
195188
196- OPAL_DECLSPEC int opal_common_ucx_del_procs_nb (opal_common_ucx_del_proc_t * procs , size_t count ,
189+ OPAL_DECLSPEC int opal_common_ucx_del_procs_nofence (opal_common_ucx_del_proc_t * procs , size_t count ,
197190 size_t my_rank , size_t max_disconnect , ucp_worker_h worker ) {
198191 size_t num_reqs ;
199192 size_t max_reqs ;
@@ -247,11 +240,7 @@ OPAL_DECLSPEC int opal_common_ucx_del_procs_nb(opal_common_ucx_del_proc_t *procs
247240OPAL_DECLSPEC int opal_common_ucx_del_procs (opal_common_ucx_del_proc_t * procs , size_t count ,
248241 size_t my_rank , size_t max_disconnect , ucp_worker_h worker )
249242{
250- int ret = OPAL_SUCCESS ;
251- opal_common_ucx_del_procs_nb (procs , count , my_rank , max_disconnect , worker );
252- if (OPAL_SUCCESS != (ret = opal_common_ucx_mca_pmix_fence (worker ))) {
253- return ret ;
254- }
243+ opal_common_ucx_del_procs_nofence (procs , count , my_rank , max_disconnect , worker );
255244
256- return OPAL_SUCCESS ;
245+ return opal_common_ucx_mca_pmix_fence ( worker ) ;
257246}
0 commit comments