task_atexit.c:Fix style errors.

This commit is contained in:
David Sidrane 2020-03-08 05:51:32 -07:00 committed by patacongo
parent 96e11e65b0
commit c109610fe7
1 changed files with 7 additions and 6 deletions

View File

@ -90,8 +90,9 @@
int atexit(void (*func)(void))
{
#if defined(CONFIG_SCHED_ONEXIT)
/* atexit is equivalent to on_exit() with no argument (Assuming that the ABI
* can handle a callback function that receives more parameters than it expects).
/* atexit is equivalent to on_exit() with no argument (Assuming that the
* ABI can handle a callback function that receives more parameters than
* it expects).
*/
return on_exit((onexitfunc_t)func, NULL);
@ -110,10 +111,10 @@ int atexit(void (*func)(void))
{
sched_lock();
/* Search for the first available slot. atexit() functions are registered
* from lower to higher array indices; they must be called in the reverse
* order of registration when task exists, i.e., from higher to lower
* indices.
/* Search for the first available slot. atexit() functions are
* registered from lower to higher array indices; they must be called
* in the reverse order of registration when task exists, i.e., from
* higher to lower indices.
*/
for (index = 0; index < CONFIG_SCHED_ATEXIT_MAX; index++)