mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Delete the strlen call
This commit is contained in:
parent
759e0bf955
commit
9462d4abdb
8
tasks.c
8
tasks.c
|
@ -3545,14 +3545,6 @@ static BaseType_t prvCreateIdleTasks( void )
|
||||||
char cIdleName[ configMAX_TASK_NAME_LEN ] = { 0 };
|
char cIdleName[ configMAX_TASK_NAME_LEN ] = { 0 };
|
||||||
TaskFunction_t pxIdleTaskFunction = NULL;
|
TaskFunction_t pxIdleTaskFunction = NULL;
|
||||||
BaseType_t xIdleTaskNameIndex;
|
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++ )
|
for( xIdleTaskNameIndex = ( BaseType_t ) 0; xIdleTaskNameIndex < ( configMAX_TASK_NAME_LEN - taskRESERVED_TASK_NAME_LENGTH ); xIdleTaskNameIndex++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue