From 684ebc30056701107fe31184674e9543f6b5b87b Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Wed, 24 Mar 2021 17:29:14 +0000 Subject: [PATCH] Remove extra parenthesis Signed-off-by: Gaurav Aggarwal --- tasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.c b/tasks.c index 7d01384d8..a1a6aaca0 100644 --- a/tasks.c +++ b/tasks.c @@ -914,7 +914,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, } /* This is used as an array index so must ensure it's not too large. */ - configASSERT( ( uxPriority < configMAX_PRIORITIES ) ); + configASSERT( uxPriority < configMAX_PRIORITIES ); if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES ) { uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U; @@ -1544,7 +1544,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) UBaseType_t uxCurrentBasePriority, uxPriorityUsedOnEntry; BaseType_t xYieldRequired = pdFALSE; - configASSERT( ( uxNewPriority < configMAX_PRIORITIES ) ); + configASSERT( uxNewPriority < configMAX_PRIORITIES ); /* Ensure the new priority is valid. */ if( uxNewPriority >= ( UBaseType_t ) configMAX_PRIORITIES )