mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
sched/sched_releasetcb: Fix code style issue from prior patch
This commit is contained in:
@@ -126,7 +126,7 @@ int nxsched_release_tcb(FAR struct tcb_s *tcb, uint8_t ttype)
|
|||||||
|
|
||||||
if (tcb->stack_alloc_ptr)
|
if (tcb->stack_alloc_ptr)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
#ifdef CONFIG_BUILD_KERNEL
|
||||||
/* If the exiting thread is not a kernel thread, then it has an
|
/* If the exiting thread is not a kernel thread, then it has an
|
||||||
* address environment. Don't bother to release the stack memory
|
* address environment. Don't bother to release the stack memory
|
||||||
* in this case... There is no point since the memory lies in the
|
* in this case... There is no point since the memory lies in the
|
||||||
@@ -138,7 +138,7 @@ int nxsched_release_tcb(FAR struct tcb_s *tcb, uint8_t ttype)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (ttype == TCB_FLAG_TTYPE_KERNEL)
|
if (ttype == TCB_FLAG_TTYPE_KERNEL)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
up_release_stack(tcb, ttype);
|
up_release_stack(tcb, ttype);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user