Skip to content

Commit c19b13c

Browse files
bradleysmith23chinglee-iotactions-userkar-rahul-aws
authored
Fix MISRA C 2012 Rule 14.4 Violations. (#975)
* Fix MISRA rule 14.4 violations. * Use pdFALSE instead of 0 in comparison Co-authored-by: chinglee-iot <[email protected]> * Uncrustify: triggered by comment. * Run Github Actions. --------- Co-authored-by: chinglee-iot <[email protected]> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Rahul Kar <[email protected]>
1 parent 1c35cb3 commit c19b13c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tasks.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,17 @@
175175
/*-----------------------------------------------------------*/
176176

177177
#if ( configNUMBER_OF_CORES == 1 )
178-
#define taskSELECT_HIGHEST_PRIORITY_TASK() \
179-
do { \
180-
UBaseType_t uxTopPriority = uxTopReadyPriority; \
181-
\
182-
/* Find the highest priority queue that contains ready tasks. */ \
183-
while( listLIST_IS_EMPTY( &( pxReadyTasksLists[ uxTopPriority ] ) ) ) \
184-
{ \
185-
configASSERT( uxTopPriority ); \
186-
--uxTopPriority; \
187-
} \
188-
\
178+
#define taskSELECT_HIGHEST_PRIORITY_TASK() \
179+
do { \
180+
UBaseType_t uxTopPriority = uxTopReadyPriority; \
181+
\
182+
/* Find the highest priority queue that contains ready tasks. */ \
183+
while( listLIST_IS_EMPTY( &( pxReadyTasksLists[ uxTopPriority ] ) ) != pdFALSE ) \
184+
{ \
185+
configASSERT( uxTopPriority ); \
186+
--uxTopPriority; \
187+
} \
188+
\
189189
/* listGET_OWNER_OF_NEXT_ENTRY indexes through the list, so the tasks of \
190190
* the same priority get an equal share of the processor time. */ \
191191
listGET_OWNER_OF_NEXT_ENTRY( pxCurrentTCB, &( pxReadyTasksLists[ uxTopPriority ] ) ); \

0 commit comments

Comments
 (0)