From c4bd280072d4dad7ab98dcd0ebb1255ad01cb4e8 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 9 Sep 2017 22:37:09 +0200 Subject: [PATCH] 'request' cannot be null here (verified before at line 611. --- src/smpi/bindings/smpi_pmpi_request.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/smpi/bindings/smpi_pmpi_request.cpp b/src/smpi/bindings/smpi_pmpi_request.cpp index ab3091bde6..39683f8459 100644 --- a/src/smpi/bindings/smpi_pmpi_request.cpp +++ b/src/smpi/bindings/smpi_pmpi_request.cpp @@ -613,8 +613,7 @@ int PMPI_Wait(MPI_Request * request, MPI_Status * status) } 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(); -- 2.20.1