forked from nuttx/nuttx-update
group_signal_handler: Remove a redundant check
We know tcb is not NULL here as we have a DIAGASSERT on it immediately above.
This commit is contained in:
parent
6d629b3b36
commit
ab3b128805
1 changed files with 56 additions and 59 deletions
|
@ -85,8 +85,6 @@ static int group_signal_handler(pid_t pid, FAR void *arg)
|
|||
tcb = nxsched_get_tcb(pid);
|
||||
DEBUGASSERT(tcb != NULL && tcb->group != NULL && info != NULL);
|
||||
|
||||
if (tcb)
|
||||
{
|
||||
/* Set this one as the default if we have not already set the
|
||||
* default.
|
||||
*/
|
||||
|
@ -167,7 +165,6 @@ static int group_signal_handler(pid_t pid, FAR void *arg)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0; /* Keep searching */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue