Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid tautological-compare
[simgrid.git] / src / smpi / smpi_mpi_dt.c
index 4cd5f64..07bec7c 100644 (file)
@@ -150,8 +150,7 @@ CREATE_MPI_DATATYPE(MPI_PTR, void*);
  */
 int is_datatype_valid(MPI_Datatype datatype) {
     return datatype != MPI_DATATYPE_NULL
-        && (datatype->flags & DT_FLAG_COMMITED)
-        && (smpi_datatype_size(datatype)>=0);
+        && (datatype->flags & DT_FLAG_COMMITED);
 }
 
 size_t smpi_datatype_size(MPI_Datatype datatype)