From: Arnaud Giersch Date: Thu, 26 Nov 2020 22:06:16 +0000 (+0100) Subject: [pvs] The conditional expressions of the 'if' statements situated alongside each... X-Git-Tag: v3.26~82 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/aa99d92175208b03a4bbb62ffd2dd8157de2723a?hp=ab3103db83e6126b03f6bd2f85ab88c5545ceaf1 [pvs] The conditional expressions of the 'if' statements situated alongside each other are identical. --- diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index c10e7b2375..914ce4f1cf 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -480,12 +480,12 @@ void CommImpl::copy_data() dst_actor_ ? dst_actor_->get_host()->get_cname() : "a finished process", dst_buff_, buff_size); /* Copy at most dst_buff_size bytes of the message to receiver's buffer */ - if (dst_buff_size_) + if (dst_buff_size_) { buff_size = std::min(buff_size, *(dst_buff_size_)); - /* Update the receiver's buffer size to the copied amount */ - if (dst_buff_size_) + /* Update the receiver's buffer size to the copied amount */ *dst_buff_size_ = buff_size; + } if (buff_size > 0) { if (copy_data_fun)