Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix dead store (fbinfer).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 7 Oct 2022 12:54:10 +0000 (14:54 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 11 Oct 2022 13:15:57 +0000 (15:15 +0200)
src/kernel/resource/WifiLinkImpl.cpp

index 92ebf0b..dd8e23b 100644 (file)
@@ -114,7 +114,7 @@ void WifiLinkImpl::update_bw_comm_end(const simgrid::kernel::resource::NetworkAc
 
 double WifiLinkImpl::get_max_ratio() const
 {
-  double new_peak = -1;
+  double new_peak;
   if (nb_active_flux_ > conc_lim_) {
     new_peak = (nb_active_flux_-conc_lim_) * co_acc_ + x0_;
     XBT_DEBUG("Wi-Fi link peak=(%d-%d)*%lf+%lf=%lf", nb_active_flux_, conc_lim_, co_acc_, x0_, new_peak);