Skip to content

Commit f2e33c7

Browse files
committed
MPI_Unpack: fix return status
this regression was previously introduced in 221e6e2
1 parent 21f59b8 commit f2e33c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ompi/mpi/c/unpack.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,12 @@ int MPI_Unpack(const void *inbuf, int insize, int *position,
101101
rc = opal_convertor_unpack( &local_convertor, &outvec, &iov_count, &size );
102102
*position += size;
103103
OBJ_DESTRUCT( &local_convertor );
104-
105-
/* All done. Note that the convertor returns 1 upon success, not
106-
OMPI_SUCCESS. */
107-
rc = (1 == rc) ? OMPI_SUCCESS : OMPI_ERROR;
108104
}
109105

110106
OPAL_CR_EXIT_LIBRARY();
111107

108+
/* All done. Note that the convertor returns 1 upon success, not
109+
OMPI_SUCCESS. */
112110
OMPI_ERRHANDLER_RETURN((rc == 1) ? OMPI_SUCCESS : OMPI_ERROR,
113111
comm, MPI_ERR_UNKNOWN, FUNC_NAME);
114112
}

0 commit comments

Comments
 (0)