Skip to content

Commit 3f6f698

Browse files
committed
MPI_Unpack: fix return status
this regression was previously introduced in 221e6e2 (back-ported from commit f2e33c7) Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 0b62df0 commit 3f6f698

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
@@ -99,12 +99,10 @@ int MPI_Unpack(const void *inbuf, int insize, int *position,
9999
rc = opal_convertor_unpack( &local_convertor, &outvec, &iov_count, &size );
100100
*position += size;
101101
OBJ_DESTRUCT( &local_convertor );
102-
103-
/* All done. Note that the convertor returns 1 upon success, not
104-
OMPI_SUCCESS. */
105-
rc = (1 == rc) ? OMPI_SUCCESS : OMPI_ERROR;
106102
}
107103

104+
/* All done. Note that the convertor returns 1 upon success, not
105+
OMPI_SUCCESS. */
108106
OMPI_ERRHANDLER_RETURN((rc == 1) ? OMPI_SUCCESS : OMPI_ERROR,
109107
comm, MPI_ERR_UNKNOWN, FUNC_NAME);
110108
}

0 commit comments

Comments
 (0)