Skip to content

Commit 61c4171

Browse files
William Deanhtejun
authored andcommitted
cgroup: simplify code in cgroup_apply_control
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>
1 parent 7e1eb54 commit 61c4171

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

kernel/cgroup/cgroup.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,11 +3305,7 @@ static int cgroup_apply_control(struct cgroup *cgrp)
33053305
* making the following cgroup_update_dfl_csses() properly update
33063306
* css associations of all tasks in the subtree.
33073307
*/
3308-
ret = cgroup_update_dfl_csses(cgrp);
3309-
if (ret)
3310-
return ret;
3311-
3312-
return 0;
3308+
return cgroup_update_dfl_csses(cgrp);
33133309
}
33143310

33153311
/**

0 commit comments

Comments
 (0)