Skip to content

Commit 84d2649

Browse files
committed
Put declarations back at beginning of function
1 parent b6f175f commit 84d2649

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tasks.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7653,6 +7653,7 @@ TickType_t uxTaskResetEventItemValue( void )
76537653
TickType_t xTicksToWait )
76547654
{
76557655
uint32_t ulReturn;
7656+
BaseType_t xAlreadyYielded, xShouldBlock = pdFALSE;
76567657

76577658
traceENTER_ulTaskGenericNotifyTake( uxIndexToWaitOn, xClearCountOnExit, xTicksToWait );
76587659

@@ -7662,8 +7663,6 @@ TickType_t uxTaskResetEventItemValue( void )
76627663
* notification, then block the task and wait. */
76637664
if( ( pxCurrentTCB->ulNotifiedValue[ uxIndexToWaitOn ] == 0U ) && ( xTicksToWait > ( TickType_t ) 0 ) )
76647665
{
7665-
BaseType_t xAlreadyYielded, xShouldBlock = pdFALSE;
7666-
76677666
/* We suspend the scheduler here as prvAddCurrentTaskToDelayedList is a
76687667
* non-deterministic operation. */
76697668
vTaskSuspendAll();
@@ -7757,7 +7756,7 @@ TickType_t uxTaskResetEventItemValue( void )
77577756
uint32_t * pulNotificationValue,
77587757
TickType_t xTicksToWait )
77597758
{
7760-
BaseType_t xReturn;
7759+
BaseType_t xReturn, xAlreadyYielded, xShouldBlock = pdFALSE;
77617760

77627761
traceENTER_xTaskGenericNotifyWait( uxIndexToWaitOn, ulBitsToClearOnEntry, ulBitsToClearOnExit, pulNotificationValue, xTicksToWait );
77637762

@@ -7767,8 +7766,6 @@ TickType_t uxTaskResetEventItemValue( void )
77677766
* for it, then block the task and wait. */
77687767
if( ( pxCurrentTCB->ucNotifyState[ uxIndexToWaitOn ] != taskNOTIFICATION_RECEIVED ) && ( xTicksToWait > ( TickType_t ) 0 ) )
77697768
{
7770-
BaseType_t xAlreadyYielded, xShouldBlock = pdFALSE;
7771-
77727769
/* We suspend the scheduler here as prvAddCurrentTaskToDelayedList is a
77737770
* non-deterministic operation. */
77747771
vTaskSuspendAll();

0 commit comments

Comments
 (0)