diff --git a/arch b/arch index 5a6306b76aa..689e18739d4 160000 --- a/arch +++ b/arch @@ -1 +1 @@ -Subproject commit 5a6306b76aa6656c56f5c19cbf18757a295ee1bc +Subproject commit 689e18739d4dc9d5238dd4b74e88792cfc1ec2e1 diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index 1d3526d5a14..107982c59ba 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -305,7 +305,7 @@ int sig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info) stcb, info->si_signo, info->si_code, info->si_value.sival_int, stcb->sigprocmask); - DEBUGASSERT(stcb && info); + DEBUGASSERT(stcb != NULL && info != NULL); /************************* MASKED SIGNAL HANDLING ************************/ @@ -439,7 +439,7 @@ int sig_dispatch(pid_t pid, FAR siginfo_t *info) /* Get the TCB associated with the pid */ stcb = sched_gettcb(pid); - if (stcb) + if (stcb != NULL) { /* The task/thread associated with this PID is still active. Get its * task group. @@ -459,7 +459,7 @@ int sig_dispatch(pid_t pid, FAR siginfo_t *info) /* Did we locate the group? */ - if (group) + if (group != NULL) { /* Yes.. call group_signal() to send the signal to the correct group * member. @@ -478,7 +478,7 @@ int sig_dispatch(pid_t pid, FAR siginfo_t *info) /* Get the TCB associated with the pid */ stcb = sched_gettcb(pid); - if (!stcb) + if (stcb == NULL) { return -ESRCH; }