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(
1618
1618
struct ompi_win_t * win , int rank , size_t * size ,
1619
1619
ptrdiff_t * disp_unit , void * baseptr )
1620
1620
{
1621
+ int rc = OMPI_ERR_NOT_SUPPORTED ;
1621
1622
ompi_osc_rdma_peer_t * peer ;
1622
1623
int actual_rank = rank ;
1623
1624
ompi_osc_rdma_module_t * module = GET_MODULE (win );
@@ -1656,15 +1657,16 @@ int ompi_osc_rdma_shared_query(
1656
1657
* disp_unit = module -> disp_unit ;
1657
1658
ompi_osc_rdma_peer_basic_t * ex_peer = (ompi_osc_rdma_peer_basic_t * ) peer ;
1658
1659
* ((void * * ) baseptr ) = (void * ) (intptr_t )ex_peer -> base ;
1660
+ rc = OMPI_SUCCESS ;
1659
1661
} else {
1660
1662
ompi_osc_rdma_peer_extended_t * ex_peer = (ompi_osc_rdma_peer_extended_t * ) peer ;
1661
1663
if (ex_peer -> super .base != 0 ) {
1662
1664
/* we know the base of the peer */
1663
1665
* ((void * * ) baseptr ) = (void * ) (intptr_t )ex_peer -> super .base ;
1664
1666
* size = ex_peer -> size ;
1665
1667
* disp_unit = ex_peer -> disp_unit ;
1666
- return OMPI_SUCCESS ;
1668
+ rc = OMPI_SUCCESS ;
1667
1669
}
1668
1670
}
1669
- return OMPI_ERR_NOT_SUPPORTED ;
1671
+ return rc ;
1670
1672
}
You can’t perform that action at this time.
0 commit comments