Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ContextBoost: useless initialization.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 12 Sep 2017 20:22:53 +0000 (22:22 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 12 Sep 2017 21:17:34 +0000 (23:17 +0200)
src/kernel/context/ContextBoost.cpp

index d36722c..fc36369 100644 (file)
@@ -193,8 +193,8 @@ void BoostContext::resume()
 void BoostSerialContext::suspend()
 {
   /* determine the next context */
-  BoostSerialContext* next_context = nullptr;
-  unsigned long int i              = process_index_;
+  BoostSerialContext* next_context;
+  unsigned long int i = process_index_;
   process_index_++;
 
   if (i < simix_global->process_to_run.size()) {