diff --git a/sched/group/group_setupidlefiles.c b/sched/group/group_setupidlefiles.c index d0276ee1493..912d2eb57ba 100644 --- a/sched/group/group_setupidlefiles.c +++ b/sched/group/group_setupidlefiles.c @@ -58,12 +58,11 @@ int group_setupidlefiles(FAR struct task_tcb_s *tcb) { - FAR struct task_group_s *group = tcb->cmn.group; #ifdef CONFIG_DEV_CONSOLE int fd; #endif - DEBUGASSERT(group != NULL); + DEBUGASSERT(tcb->cmn.group != NULL); /* Open stdin, dup to get stdout and stderr. This should always * be the first file opened and, hence, should always get file diff --git a/sched/pthread/pthread_create.c b/sched/pthread/pthread_create.c index 66bde29ce99..9ba789b5753 100644 --- a/sched/pthread/pthread_create.c +++ b/sched/pthread/pthread_create.c @@ -151,9 +151,8 @@ static inline void pthread_addjoininfo(FAR struct task_group_s *group, static void pthread_start(void) { FAR struct pthread_tcb_s *ptcb = (FAR struct pthread_tcb_s *)this_task(); - FAR struct join_s *pjoin = (FAR struct join_s *)ptcb->joininfo; - DEBUGASSERT(pjoin != NULL); + DEBUGASSERT(ptcb->joininfo != NULL); /* The priority of this thread may have been boosted to avoid priority * inversion problems. If that is the case, then drop to the correct