From c66daa524a31a24910bc8a1d239743e502367e09 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 25 May 2011 00:11:16 +0200 Subject: [PATCH] Use retval for the return value. --- src/smpi/smpi_mpi_dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index cc85e55b86..700870df07 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -129,7 +129,7 @@ int smpi_datatype_extent(MPI_Datatype datatype, MPI_Aint * lb, *extent = datatype->ub - datatype->lb; retval = MPI_SUCCESS; } - return MPI_SUCCESS; + return retval; } int smpi_datatype_copy(void *sendbuf, int sendcount, MPI_Datatype sendtype, -- 2.20.1