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 @@ -1640,6 +1640,7 @@ int ompi_osc_rdma_shared_query(
1640
1640
struct ompi_win_t * win , int rank , size_t * size ,
1641
1641
ptrdiff_t * disp_unit , void * baseptr )
1642
1642
{
1643
+ int rc = OMPI_ERR_NOT_SUPPORTED ;
1643
1644
ompi_osc_rdma_peer_t * peer ;
1644
1645
int actual_rank = rank ;
1645
1646
ompi_osc_rdma_module_t * module = GET_MODULE (win );
@@ -1678,15 +1679,16 @@ int ompi_osc_rdma_shared_query(
1678
1679
* disp_unit = module -> disp_unit ;
1679
1680
ompi_osc_rdma_peer_basic_t * ex_peer = (ompi_osc_rdma_peer_basic_t * ) peer ;
1680
1681
* ((void * * ) baseptr ) = (void * ) (intptr_t )ex_peer -> base ;
1682
+ rc = OMPI_SUCCESS ;
1681
1683
} else {
1682
1684
ompi_osc_rdma_peer_extended_t * ex_peer = (ompi_osc_rdma_peer_extended_t * ) peer ;
1683
1685
if (ex_peer -> super .base != 0 ) {
1684
1686
/* we know the base of the peer */
1685
1687
* ((void * * ) baseptr ) = (void * ) (intptr_t )ex_peer -> super .base ;
1686
1688
* size = ex_peer -> size ;
1687
1689
* disp_unit = ex_peer -> disp_unit ;
1688
- return OMPI_SUCCESS ;
1690
+ rc = OMPI_SUCCESS ;
1689
1691
}
1690
1692
}
1691
- return OMPI_ERR_NOT_SUPPORTED ;
1693
+ return rc ;
1692
1694
}
You can’t perform that action at this time.
0 commit comments