Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
'request' cannot be null here (verified before at line 611.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 9 Sep 2017 20:37:09 +0000 (22:37 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 9 Sep 2017 20:53:44 +0000 (22:53 +0200)
src/smpi/bindings/smpi_pmpi_request.cpp

index ab3091b..39683f8 100644 (file)
@@ -613,8 +613,7 @@ int PMPI_Wait(MPI_Request * request, MPI_Status * status)
   } else if (*request == MPI_REQUEST_NULL) {
     retval = MPI_SUCCESS;
   } else {
   } else if (*request == MPI_REQUEST_NULL) {
     retval = MPI_SUCCESS;
   } else {
-
-    int rank = (request!=nullptr && (*request)->comm() != MPI_COMM_NULL) ? smpi_process()->index() : -1;
+    int rank = (*request)->comm() != MPI_COMM_NULL ? smpi_process()->index() : -1;
 
     int src_traced = (*request)->src();
     int dst_traced = (*request)->dst();
 
     int src_traced = (*request)->src();
     int dst_traced = (*request)->dst();