Skip to content

Commit 582b57b

Browse files
committed
Fix datatype cleanup
The type of MPI_Datatype is not specified in the standard. They must not be implemented as objects and can, e.g., also be implemented via integers. Therefore, removing the incorrect comparison against NULL here. Signed-off-by: Christoph Niethammer <[email protected]>
1 parent a7a7e9d commit 582b57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tst_types.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ int tst_type_cleanup (void)
500500
int i;
501501
for (i=PREDEFINED_DATATYPES; i < TST_TYPES_NUM; i++)
502502
{
503-
if (NULL == ((void*)types[i].mpi_datatype) || MPI_DATATYPE_NULL == types[i].mpi_datatype)
503+
if (MPI_DATATYPE_NULL == types[i].mpi_datatype)
504504
continue;
505505

506506
MPI_Type_free (&types[i].mpi_datatype);

0 commit comments

Comments
 (0)