sched/sched/sched_waitpid.c: Remove a redundant assignment

Found by clang-check:

sched/sched_waitpid.c:380:33: warning: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
          (pid != (pid_t)-1 && (ret = nxsig_kill(pid, 0)) < 0))
                                ^     ~~~~~~~~~~~~~~~~~~
1 warning generated.
This commit is contained in:
YAMAMOTO Takashi 2020-07-30 16:44:20 +09:00 committed by Alin Jerpelea
parent bf9ba474a5
commit 8b0d42275e

View File

@ -377,7 +377,7 @@ pid_t nx_waitpid(pid_t pid, int *stat_loc, int options)
*/
if (rtcb->group->tg_nchildren == 0 ||
(pid != (pid_t)-1 && (ret = nxsig_kill(pid, 0)) < 0))
(pid != (pid_t)-1 && nxsig_kill(pid, 0) < 0))
{
/* We know that the child task was running okay when we started,
* so we must have lost the signal. What can we do?