Skip to content

Commit

Permalink
cgroup: simplify code in cgroup_apply_control
Browse files Browse the repository at this point in the history
It could directly return 'cgroup_update_dfl_csses' to simplify code.

Signed-off-by: William Dean <williamsukatube@163.com>
Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
William Dean authored and Tejun Heo committed Sep 24, 2022
1 parent 7e1eb54 commit 61c4171
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kernel/cgroup/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -3305,11 +3305,7 @@ static int cgroup_apply_control(struct cgroup *cgrp)
* making the following cgroup_update_dfl_csses() properly update
* css associations of all tasks in the subtree.
*/
ret = cgroup_update_dfl_csses(cgrp);
if (ret)
return ret;

return 0;
return cgroup_update_dfl_csses(cgrp);
}

/**
Expand Down

0 comments on commit 61c4171

Please sign in to comment.