From 94fcad64f61170c39298650a166a8c0563e324e1 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 19 Jul 2004 18:37:40 +0000 Subject: [PATCH] Use the new datatype checking macros. This commit was SVN r1783. --- src/mpi/c/send.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/mpi/c/send.c b/src/mpi/c/send.c index 94a09b7b35..89947d73b5 100644 --- a/src/mpi/c/send.c +++ b/src/mpi/c/send.c @@ -34,15 +34,12 @@ int MPI_Send(void *buf, int count, MPI_Datatype type, int dest, OMPI_ERR_INIT_FINALIZE(FUNC_NAME); if (ompi_comm_invalid(comm)) { return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_COMM, FUNC_NAME); - } else if (count < 0) { - rc = MPI_ERR_COUNT; - } else if (type == MPI_DATATYPE_NULL) { - rc = MPI_ERR_TYPE; } else if (tag < 0 || tag > MPI_TAG_UB_VALUE) { rc = MPI_ERR_TAG; } else if (ompi_comm_peer_invalid(comm, dest)) { rc = MPI_ERR_RANK; - } + } else + OMPI_CHECK_DATATYPE_FOR_SEND( rc, type, count ); OMPI_ERRHANDLER_CHECK(rc, comm, rc, FUNC_NAME); }