diff --git a/cc3200/misc/FreeRTOSHooks.c b/cc3200/misc/FreeRTOSHooks.c index a31edccf01..24971453cc 100644 --- a/cc3200/misc/FreeRTOSHooks.c +++ b/cc3200/misc/FreeRTOSHooks.c @@ -70,10 +70,7 @@ void vApplicationMallocFailedHook (void) __asm volatile ("bkpt #0 \n"); #endif - for ( ; ; ) - { - __fatal_error("FreeRTOS malloc failed!"); - } + __fatal_error("FreeRTOS malloc failed!"); } //***************************************************************************** @@ -92,10 +89,7 @@ void vApplicationStackOverflowHook (OsiTaskHandle *pxTask, signed char *pcTaskNa __asm volatile ("bkpt #0 \n"); #endif - for ( ; ; ) - { - __fatal_error("Stack overflow!"); - } + __fatal_error("Stack overflow!"); } //*****************************************************************************