diff --git a/src/mpid/ch4/netmod/ofi/ofi_recv.h b/src/mpid/ch4/netmod/ofi/ofi_recv.h index 51495158963..8def2cb1f19 100644 --- a/src/mpid/ch4/netmod/ofi/ofi_recv.h +++ b/src/mpid/ch4/netmod/ofi/ofi_recv.h @@ -275,12 +275,11 @@ MPL_STATIC_INLINE_PREFIX int MPIDI_OFI_do_irecv(void *buf, chunk_req->event_id = MPIDI_OFI_EVENT_RECV_GPU_PIPELINE_INIT; chunk_req->parent = rreq; chunk_req->buf = host_buf; - int ret = 0; - ret = fi_trecv(MPIDI_OFI_global.ctx[ctx_idx].rx, - host_buf, - MPIR_CVAR_CH4_OFI_GPU_PIPELINE_BUFFER_SZ, - NULL, remote_addr, match_bits, mask_bits, - (void *) &chunk_req->context); + mpi_errno = fi_trecv(MPIDI_OFI_global.ctx[ctx_idx].rx, + host_buf, + MPIR_CVAR_CH4_OFI_GPU_PIPELINE_BUFFER_SZ, + NULL, remote_addr, match_bits, mask_bits, + (void *) &chunk_req->context); goto fn_exit; }