You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/11/07 10:14:50 UTC

[incubator-nuttx] branch master updated: sched/task/task_exithook.c: Remove a redundant assignment

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 878dc33  sched/task/task_exithook.c: Remove a redundant assignment
878dc33 is described below

commit 878dc33736a6d0f028f500e10ead6b67981ee536
Author: Yoshinori Sugino <ys...@gmail.com>
AuthorDate: Sat Nov 7 10:32:37 2020 +0900

    sched/task/task_exithook.c: Remove a redundant assignment
---
 sched/task/task_exithook.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sched/task/task_exithook.c b/sched/task/task_exithook.c
index 445c19a..8b9ff31 100644
--- a/sched/task/task_exithook.c
+++ b/sched/task/task_exithook.c
@@ -203,11 +203,6 @@ static inline void nxtask_exitstatus(FAR struct task_group_s *group,
       child = group_find_child(group, getpid());
       if (child)
         {
-#ifndef HAVE_GROUP_MEMBERS
-          /* No group members? Save the exit status */
-
-          child->ch_status = status;
-#endif
           /* Save the exit status..  For the case of HAVE_GROUP_MEMBERS,
            * the child status will be as exited until the last member
            * of the task group exits.