This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 68c21df444 sched/pthread/join: remove unused joininfo 68c21df444 is described below commit 68c21df444fef369a8ef77e94f1d28187c1f91e1 Author: chao an <anc...@lixiang.com> AuthorDate: Mon Mar 11 19:08:12 2024 +0800 sched/pthread/join: remove unused joininfo remove unused joininfo, minor issue found from code reading Signed-off-by: chao an <anc...@lixiang.com> --- include/nuttx/sched.h | 1 - sched/pthread/pthread_findjoininfo.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h index 35c7a1b5bb..780481e04d 100644 --- a/include/nuttx/sched.h +++ b/include/nuttx/sched.h @@ -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 */ diff --git a/sched/pthread/pthread_findjoininfo.c b/sched/pthread/pthread_findjoininfo.c index 5250e55b43..41e4c73f87 100644 --- a/sched/pthread/pthread_findjoininfo.c +++ b/sched/pthread/pthread_findjoininfo.c @@ -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) {