From 924924211959c0bc597a303d53910e6d2b015a56 Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Wed, 12 Aug 2015 16:40:35 +0200 Subject: [PATCH] cc3200: Remove unneeded loops in the FreeRTOS hooks. --- cc3200/misc/FreeRTOSHooks.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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!"); } //*****************************************************************************