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
-3
View File
@@ -85,8 +85,6 @@ static int group_signal_handler(pid_t pid, FAR void *arg)
tcb = nxsched_get_tcb(pid); tcb = nxsched_get_tcb(pid);
DEBUGASSERT(tcb != NULL && tcb->group != NULL && info != NULL); DEBUGASSERT(tcb != NULL && tcb->group != NULL && info != NULL);
if (tcb)
{
/* Set this one as the default if we have not already set the /* Set this one as the default if we have not already set the
* default. * default.
*/ */
@@ -167,7 +165,6 @@ static int group_signal_handler(pid_t pid, FAR void *arg)
} }
} }
} }
}
return 0; /* Keep searching */ return 0; /* Keep searching */
} }