mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
sched/signal: Remove redundant checks
This commit is contained in:
committed by
Xiang Xiao
parent
03d461f7e2
commit
8acff49a14
@@ -100,10 +100,7 @@ FAR sigq_t *nxsig_alloc_pendingsigaction(void)
|
||||
{
|
||||
/* No...Try the resource pool */
|
||||
|
||||
if (!sigq)
|
||||
{
|
||||
sigq = (FAR sigq_t *)kmm_malloc((sizeof (sigq_t)));
|
||||
}
|
||||
sigq = (FAR sigq_t *)kmm_malloc((sizeof (sigq_t)));
|
||||
|
||||
/* Check if we got an allocated message */
|
||||
|
||||
|
||||
@@ -172,10 +172,7 @@ static FAR sigpendq_t *nxsig_alloc_pendingsignal(void)
|
||||
{
|
||||
/* No... Allocate the pending signal */
|
||||
|
||||
if (!sigpend)
|
||||
{
|
||||
sigpend = (FAR sigpendq_t *)kmm_malloc((sizeof (sigpendq_t)));
|
||||
}
|
||||
sigpend = (FAR sigpendq_t *)kmm_malloc((sizeof (sigpendq_t)));
|
||||
|
||||
/* Check if we got an allocated message */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user