Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Parameter for cleanup callback won't be null.
[simgrid.git] / teshsuite / msg / host_on_off_processes / host_on_off_processes.cpp
index 5c52339..b4a467a 100644 (file)
@@ -15,8 +15,7 @@ int tasks_done = 0;
 
 static void task_cleanup_handler(void* task)
 {
 
 static void task_cleanup_handler(void* task)
 {
-  if (task)
-    MSG_task_destroy(static_cast<msg_task_t>(task));
+  MSG_task_destroy(static_cast<msg_task_t>(task));
 }
 
 static int process_daemon(int /*argc*/, char** /*argv*/)
 }
 
 static int process_daemon(int /*argc*/, char** /*argv*/)