From: William Dean Date: Sat, 17 Sep 2022 08:40:39 +0000 (+0800) Subject: cgroup: simplify code in cgroup_apply_control X-Git-Tag: v6.1-rc5~239^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61c41711b12b808ec388b739444372430942c2e8;p=platform%2Fkernel%2Flinux-starfive.git cgroup: simplify code in cgroup_apply_control It could directly return 'cgroup_update_dfl_csses' to simplify code. Signed-off-by: William Dean Reviewed-by: Mukesh Ojha Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index c1f1ef6..c37b826 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); } /**