sched_mergepending.c: Correct some errors in comments. (#38)

* Documentation/NuttXCCodingStandard.html:  Remove requirement to decorate ignored returned values with (void).

* sched_mergepending.c:  Correct some errors in comments.

Co-authored-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
patacongo 2020-01-04 11:06:44 -06:00 committed by Alan Carvalho de Assis
parent 3951c4de5a
commit 7136215930

View File

@ -76,11 +76,10 @@
* a context switch is needed. * a context switch is needed.
* *
* Assumptions: * Assumptions:
* - The caller has established a critical section before * - The caller has established a critical section before calling this
* calling this function (calling sched_lock() first is NOT * function.
* a good idea -- use enter_critical_section()). * - The caller handles the condition that occurs if the head of the
* - The caller handles the condition that occurs if the * ready-to-run task list is changed.
* the head of the sched_mergTSTATE_TASK_PENDINGs is changed.
* *
****************************************************************************/ ****************************************************************************/
@ -181,11 +180,10 @@ bool sched_mergepending(void)
* a context switch is needed. * a context switch is needed.
* *
* Assumptions: * Assumptions:
* - The caller has established a critical section before * - The caller has established a critical section before calling this
* calling this function (calling sched_lock() first is NOT * function.
* a good idea -- use enter_critical_section()). * - The caller handles the condition that occurs if the head of the
* - The caller handles the condition that occurs if the * ready-to-run task list is changed.
* the head of the sched_mergTSTATE_TASK_PENDINGs is changed.
* *
****************************************************************************/ ****************************************************************************/
@ -261,7 +259,7 @@ bool sched_mergepending(void)
(FAR dq_queue_t *)&g_pendingtasks, (FAR dq_queue_t *)&g_pendingtasks,
TSTATE_TASK_PENDING); TSTATE_TASK_PENDING);
/* And return with the schedule locked and tasks in the /* And return with the scheduler locked and tasks in the
* pending task list. * pending task list.
*/ */