Update INFINITE_LOOP control (#775)

* Use for loop instead of while loop for INFINITE_LOOP control
diff --git a/tasks.c b/tasks.c
index 2786c5a..6cb233e 100644
--- a/tasks.c
+++ b/tasks.c
@@ -5118,7 +5118,7 @@
 
         taskYIELD();
 
-        while( INFINITE_LOOP() )
+        for( ; INFINITE_LOOP(); )
         {
             #if ( configUSE_PREEMPTION == 0 )
             {
@@ -5203,7 +5203,7 @@
     }
     #endif /* #if ( configNUMBER_OF_CORES > 1 ) */
 
-    while( INFINITE_LOOP() )
+    for( ; INFINITE_LOOP(); )
     {
         /* See if any tasks have deleted themselves - if so then the idle task
          * is responsible for freeing the deleted task's TCB and stack. */