Tiny refactor in exitScheduler
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Mon, 19 Nov 2018 07:28:57 +0000 (10:28 +0300)
committerÖmer Sinan Ağacan <omeragacan@gmail.com>
Mon, 19 Nov 2018 07:28:57 +0000 (10:28 +0300)
rts/Schedule.c

index d104cfd..54ebb43 100644 (file)
@@ -2649,9 +2649,7 @@ void
 exitScheduler (bool wait_foreign USED_IF_THREADS)
                /* see Capability.c, shutdownCapability() */
 {
-    Task *task = NULL;
-
-    task = newBoundTask();
+    Task *task = newBoundTask();
 
     // If we haven't killed all the threads yet, do it now.
     if (sched_state < SCHED_SHUTTING_DOWN) {