From 9462d4abdb73c0eafc480bd5d256897270606938 Mon Sep 17 00:00:00 2001 From: Kody Stribrny Date: Tue, 21 Jan 2025 08:50:32 -0800 Subject: [PATCH] Delete the strlen call --- tasks.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tasks.c b/tasks.c index a5aeb6073..d0640c655 100644 --- a/tasks.c +++ b/tasks.c @@ -3545,14 +3545,6 @@ static BaseType_t prvCreateIdleTasks( void ) char cIdleName[ configMAX_TASK_NAME_LEN ] = { 0 }; TaskFunction_t pxIdleTaskFunction = NULL; BaseType_t xIdleTaskNameIndex; - BaseType_t xIdleNameLen; - BaseType_t xCopyLen; - - /* The length of the idle task name is limited to the minimum of the length - * of configIDLE_TASK_NAME and configMAX_TASK_NAME_LEN - 2, keeping space - * for the core ID suffix and the null-terminator. */ - xIdleNameLen = strlen( configIDLE_TASK_NAME ); - xCopyLen = xIdleNameLen < ( configMAX_TASK_NAME_LEN - 2 ) ? xIdleNameLen : ( configMAX_TASK_NAME_LEN - 2 ); for( xIdleTaskNameIndex = ( BaseType_t ) 0; xIdleTaskNameIndex < ( configMAX_TASK_NAME_LEN - taskRESERVED_TASK_NAME_LENGTH ); xIdleTaskNameIndex++ ) {