mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
tasks.c:2067:11: warning: this condition has identical branches [-Wduplicated-branches] (#482)
* replace duplicated if branch because empty by a comment to avoid warning/error with option GCC -Wduplicated-branches * Missing ';' * cosmetic comment * update comment as suggested by Gaurav-Aggarwal-AWS * cosmetic Co-authored-by: Pierre-Noel Bouteville <pnb990@gmail.com>
This commit is contained in:
parent
b5b1ff02dd
commit
cf4ff121a9
17
tasks.c
17
tasks.c
|
@ -2064,15 +2064,14 @@ void vTaskStartScheduler( void )
|
|||
|
||||
/* Setting up the timer tick is hardware specific and thus in the
|
||||
* portable interface. */
|
||||
if( xPortStartScheduler() != pdFALSE )
|
||||
{
|
||||
/* Should not reach here as if the scheduler is running the
|
||||
* function will not return. */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Should only reach here if a task calls xTaskEndScheduler(). */
|
||||
}
|
||||
xPortStartScheduler();
|
||||
|
||||
/* In most cases, xPortStartScheduler() will not return. If it
|
||||
* returns pdTRUE then there was not enough heap memory available
|
||||
* to create either the Idle or the Timer task. If it returned
|
||||
* pdFALSE, then the application called xTaskEndScheduler().
|
||||
* Most ports don't implement xTaskEndScheduler() as there is
|
||||
* nothing to return to. */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue