summaryrefslogtreecommitdiff
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorWilliam Dean <williamsukatube@163.com>2022-09-17 11:40:39 +0300
committerTejun Heo <tj@kernel.org>2022-09-24 05:52:00 +0300
commit61c41711b12b808ec388b739444372430942c2e8 (patch)
treefafb68c44e6eb196f34c57bea4d3abdb527927a1 /kernel/cgroup
parent7e1eb5437d3c3fdb61d45378579aab383cafc694 (diff)
downloadlinux-61c41711b12b808ec388b739444372430942c2e8.tar.xz
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>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/cgroup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index c1f1ef6090da..c37b8265c0a3 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -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);
}
/**