sched/pthread/join: remove unused joininfo

remove unused joininfo, minor issue found from code reading

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-03-11 19:08:12 +08:00 committed by Xiang Xiao
parent 836715a2d6
commit 68c21df444
2 changed files with 0 additions and 3 deletions

View File

@ -714,7 +714,6 @@ struct pthread_tcb_s
pthread_trampoline_t trampoline; /* User-space pthread startup function */
pthread_addr_t arg; /* Startup argument */
FAR void *joininfo; /* Detach-able info to support join */
bool join_complete; /* Join was completed */
};
#endif /* !CONFIG_DISABLE_PTHREAD */

View File

@ -82,8 +82,6 @@ int pthread_createjoininfo(FAR struct pthread_tcb_s *ptcb,
/* Attach the join info to the TCB. */
ptcb->joininfo = (FAR void *)(*pjoin);
(*pjoin)->next = NULL;
if (!group->tg_jointail)
{