From: Arnaud Giersch Date: Sun, 18 Apr 2021 19:19:38 +0000 (+0200) Subject: Kill a TODO (-1 is correct for an invalid PID). X-Git-Tag: v3.28~455^2~8 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/367c3e351de1918df33865e9eec68c3f0ca93a39 Kill a TODO (-1 is correct for an invalid PID). --- diff --git a/src/smpi/bindings/smpi_pmpi_request.cpp b/src/smpi/bindings/smpi_pmpi_request.cpp index 67be9f38a2..5fa62ffebb 100644 --- a/src/smpi/bindings/smpi_pmpi_request.cpp +++ b/src/smpi/bindings/smpi_pmpi_request.cpp @@ -629,9 +629,7 @@ int PMPI_Wait(MPI_Request * request, MPI_Status * status) else savedreq = MPI_REQUEST_NULL; - int my_proc_id = (*request)->comm() != MPI_COMM_NULL - ? simgrid::s4u::this_actor::get_pid() - : -1; // TODO: cheinrich: Check if this correct or if it should be MPI_UNDEFINED + int my_proc_id = (*request)->comm() != MPI_COMM_NULL ? simgrid::s4u::this_actor::get_pid() : -1; TRACE_smpi_comm_in(my_proc_id, __func__, new simgrid::instr::WaitTIData((*request)->src(), (*request)->dst(), (*request)->tag()));