Merge branch 'MISRA-13.2' of https://github.com/bradleysmith23/FreeRTOS-Kernel into MISRA-13.2

This commit is contained in:
bradleysmith23 2024-02-01 14:38:24 -08:00
commit 431dcfe7fe

View file

@ -3189,10 +3189,10 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
* to by pxCurrentTCB has just been suspended and pxCurrentTCB
* must be adjusted to point to a different task. */
/* Use temp variable as distinct sequence points for reading
* volatile variables prior to a comparison, per the coding guidelines */
UBaseType_t uxCurrentListLength = listCURRENT_LIST_LENGTH( &xSuspendedTaskList );
UBaseType_t uxCurrentNumOfTasks = uxCurrentNumberOfTasks;
/* Use temp variable as distinct sequence points for reading
* volatile variables prior to a comparison, per the coding guidelines */
UBaseType_t uxCurrentListLength = listCURRENT_LIST_LENGTH( &xSuspendedTaskList );
UBaseType_t uxCurrentNumOfTasks = uxCurrentNumberOfTasks;
if( uxCurrentListLength == uxCurrentNumOfTasks )
{