Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[PLUGIN] Remove local variable and comment in host_load.cpp
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 8 Feb 2018 10:07:30 +0000 (11:07 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Tue, 13 Feb 2018 18:53:17 +0000 (19:53 +0100)
src/surf/plugins/host_load.cpp

index ebe41f4..f3a09d6 100644 (file)
@@ -126,9 +126,7 @@ static void onActionStateChange(simgrid::surf::CpuAction* action, simgrid::surf:
       return;
 
     if (host != nullptr) {
-      // Get the host_load extension for the relevant host
-      HostLoad* host_load = host->extension<HostLoad>();
-      host_load->update();
+      host->extension<HostLoad>()->update();
     }
   }
 }