1
0
Fork 0
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:
YAMAMOTO Takashi 2024-11-15 15:52:18 +09:00 committed by Xiang Xiao
parent 6d629b3b36
commit ab3b128805

View file

@ -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 */
}