mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
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:
committed by
Xiang Xiao
parent
6d629b3b36
commit
ab3b128805
@@ -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 */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user