diff --git a/sched/signal/sig_allocpendingsigaction.c b/sched/signal/sig_allocpendingsigaction.c index 69fac390c8..3bf84dbf6e 100644 --- a/sched/signal/sig_allocpendingsigaction.c +++ b/sched/signal/sig_allocpendingsigaction.c @@ -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 */ diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index 7f4ac043cb..7091e7c8ec 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -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 */