From: Christian Heinrich Date: Tue, 7 Jun 2016 09:32:42 +0000 (+0200) Subject: [SMPI] Make an if-condition more readable X-Git-Tag: v3_14~1033 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f6d9338e94a19ceada92996d92d2a647d22e5000 [SMPI] Make an if-condition more readable --- diff --git a/src/smpi/smpi_base.cpp b/src/smpi/smpi_base.cpp index aef7635dca..a4b3197044 100644 --- a/src/smpi/smpi_base.cpp +++ b/src/smpi/smpi_base.cpp @@ -474,8 +474,8 @@ void smpi_mpi_start(MPI_Request request) } void* buf = request->buf; - if ( ((request->flags & SSEND) == 0) && (((request->flags & RMA) != 0) || - (static_cast(request->size) < xbt_cfg_get_int("smpi/send-is-detached-thresh")))) { + if ( (request->flags & SSEND) == 0 + && ( (request->flags & RMA) != 0 || static_cast(request->size) < xbt_cfg_get_int("smpi/send-is-detached-thresh") ) ) { void *oldbuf = NULL; request->detached = 1; XBT_DEBUG("Send request %p is detached", request);