Skip to content

Commit 74239b6

Browse files
committed
SQUASHME: fix return value in osc/rdma
Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
1 parent 82e4cc1 commit 74239b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,7 @@ int ompi_osc_rdma_shared_query(
16401640
struct ompi_win_t *win, int rank, size_t *size,
16411641
ptrdiff_t *disp_unit, void *baseptr)
16421642
{
1643+
int rc = OMPI_ERR_NOT_SUPPORTED;
16431644
ompi_osc_rdma_peer_t *peer;
16441645
int actual_rank = rank;
16451646
ompi_osc_rdma_module_t *module = GET_MODULE(win);
@@ -1678,15 +1679,16 @@ int ompi_osc_rdma_shared_query(
16781679
*disp_unit = module->disp_unit;
16791680
ompi_osc_rdma_peer_basic_t *ex_peer = (ompi_osc_rdma_peer_basic_t *) peer;
16801681
*((void**) baseptr) = (void *) (intptr_t)ex_peer->base;
1682+
rc = OMPI_SUCCESS;
16811683
} else {
16821684
ompi_osc_rdma_peer_extended_t *ex_peer = (ompi_osc_rdma_peer_extended_t *) peer;
16831685
if (ex_peer->super.base != 0) {
16841686
/* we know the base of the peer */
16851687
*((void**) baseptr) = (void *) (intptr_t)ex_peer->super.base;
16861688
*size = ex_peer->size;
16871689
*disp_unit = ex_peer->disp_unit;
1688-
return OMPI_SUCCESS;
1690+
rc = OMPI_SUCCESS;
16891691
}
16901692
}
1691-
return OMPI_ERR_NOT_SUPPORTED;
1693+
return rc;
16921694
}

0 commit comments

Comments
 (0)