Skip to content

Commit 3541463

Browse files
committed
Remove unecessary type cast
1 parent 4887bb4 commit 3541463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
983983
#if ( configUSE_CORE_AFFINITY == 1 )
984984
pxPreviousTCB = pxCurrentTCBs[ xCoreID ];
985985
#endif
986-
pxTCB->xTaskRunState = ( BaseType_t ) xCoreID;
986+
pxTCB->xTaskRunState = xCoreID;
987987
pxCurrentTCBs[ xCoreID ] = pxTCB;
988988
xTaskScheduled = pdTRUE;
989989
}
@@ -997,7 +997,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
997997
#endif
998998
{
999999
/* The task is already running on this core, mark it as scheduled. */
1000-
pxTCB->xTaskRunState = ( BaseType_t ) xCoreID;
1000+
pxTCB->xTaskRunState = xCoreID;
10011001
xTaskScheduled = pdTRUE;
10021002
}
10031003
}

0 commit comments

Comments
 (0)