File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1618,6 +1618,7 @@ int ompi_osc_rdma_shared_query(
16181618 struct ompi_win_t * win , int rank , size_t * size ,
16191619 ptrdiff_t * disp_unit , void * baseptr )
16201620{
1621+ int rc = OMPI_ERR_NOT_SUPPORTED ;
16211622 ompi_osc_rdma_peer_t * peer ;
16221623 int actual_rank = rank ;
16231624 ompi_osc_rdma_module_t * module = GET_MODULE (win );
@@ -1656,15 +1657,16 @@ int ompi_osc_rdma_shared_query(
16561657 * disp_unit = module -> disp_unit ;
16571658 ompi_osc_rdma_peer_basic_t * ex_peer = (ompi_osc_rdma_peer_basic_t * ) peer ;
16581659 * ((void * * ) baseptr ) = (void * ) (intptr_t )ex_peer -> base ;
1660+ rc = OMPI_SUCCESS ;
16591661 } else {
16601662 ompi_osc_rdma_peer_extended_t * ex_peer = (ompi_osc_rdma_peer_extended_t * ) peer ;
16611663 if (ex_peer -> super .base != 0 ) {
16621664 /* we know the base of the peer */
16631665 * ((void * * ) baseptr ) = (void * ) (intptr_t )ex_peer -> super .base ;
16641666 * size = ex_peer -> size ;
16651667 * disp_unit = ex_peer -> disp_unit ;
1666- return OMPI_SUCCESS ;
1668+ rc = OMPI_SUCCESS ;
16671669 }
16681670 }
1669- return OMPI_ERR_NOT_SUPPORTED ;
1671+ return rc ;
16701672}
You can’t perform that action at this time.
0 commit comments