X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe304706848f0a64477d4687b3ea97d5b9a0c35c..17d305e0f3a8c6f813bda1aacad5891d67fd1e3c:/src/smpi/mpi/smpi_info.cpp diff --git a/src/smpi/mpi/smpi_info.cpp b/src/smpi/mpi/smpi_info.cpp index 73a323e7b9..c20ae58755 100644 --- a/src/smpi/mpi/smpi_info.cpp +++ b/src/smpi/mpi/smpi_info.cpp @@ -31,10 +31,8 @@ int Info::get(const char *key, int valuelen, char *value, int *flag){ memcpy(value, tmpvalue.c_str(), (tmpvalue.length() + 1 < static_cast(valuelen)) ? tmpvalue.length() + 1 : valuelen); *flag=true; - return MPI_SUCCESS; - } else { - return MPI_ERR_INFO_KEY; } + return MPI_SUCCESS; } int Info::remove(const char *key){ @@ -67,10 +65,8 @@ int Info::get_valuelen(const char *key, int *valuelen, int *flag){ if (val != map_.end()) { *valuelen = val->second.length(); *flag=true; - return MPI_SUCCESS; - } else { - return MPI_ERR_INFO_KEY; } + return MPI_SUCCESS; } Info* Info::f2c(int id){