Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar by removing redundant test
authorAugustin Degomme <adegomme@gmail.com>
Sat, 5 May 2018 08:17:16 +0000 (10:17 +0200)
committerAugustin Degomme <adegomme@gmail.com>
Sat, 5 May 2018 08:17:16 +0000 (10:17 +0200)
src/smpi/bindings/smpi_pmpi_request.cpp

index 004d156..5b150bc 100644 (file)
@@ -564,9 +564,7 @@ int PMPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status* status) {
   int retval = 0;
   smpi_bench_end();
 
-  if (status == nullptr) {
-    retval = MPI_ERR_ARG;
-  } else if (comm == MPI_COMM_NULL) {
+  if (comm == MPI_COMM_NULL) {
     retval = MPI_ERR_COMM;
   } else if (source == MPI_PROC_NULL) {
     if (status != MPI_STATUS_IGNORE){