Skip to content

Commit 7a0941d

Browse files
committed
ch4/ofi: fix warnings in MPIDI_NM_progress
Add missing error check.
1 parent 2b105c6 commit 7a0941d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mpid/ch4/netmod/ofi/ofi_progress.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ MPL_STATIC_INLINE_PREFIX int MPIDI_NM_progress(int vci, int *made_progress)
8282
* to do, so simply return.
8383
* NOTE: it is not an error since global progress will poll every vci.
8484
*/
85-
return MPI_SUCCESS;
85+
goto fn_exit;
8686
}
8787

8888
if (unlikely(MPIDI_OFI_has_cq_buffered(vci))) {
@@ -104,10 +104,13 @@ MPL_STATIC_INLINE_PREFIX int MPIDI_NM_progress(int vci, int *made_progress)
104104
mpi_errno = MPI_SUCCESS;
105105
else
106106
mpi_errno = MPIDI_OFI_handle_cq_error(vci, nic, ret);
107+
108+
MPIR_ERR_CHECK(mpi_errno);
107109
}
108110

109111
if (unlikely(mpi_errno == MPI_SUCCESS && MPIDI_OFI_global.per_vci[vci].deferred_am_isend_q)) {
110112
mpi_errno = MPIDI_OFI_handle_deferred_ops(vci);
113+
MPIR_ERR_CHECK(mpi_errno);
111114
}
112115
}
113116

0 commit comments

Comments
 (0)