]> Git Repo - linux.git/commitdiff
cgroup: simplify code in cgroup_apply_control
authorWilliam Dean <[email protected]>
Sat, 17 Sep 2022 08:40:39 +0000 (16:40 +0800)
committerTejun Heo <[email protected]>
Sat, 24 Sep 2022 02:52:00 +0000 (16:52 -1000)
It could directly return 'cgroup_update_dfl_csses' to simplify code.

Signed-off-by: William Dean <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
kernel/cgroup/cgroup.c

index c1f1ef6090da8b73cd61122a5eeb7ce27379bb53..c37b8265c0a38f56baa7b02faafef466554a504b 100644 (file)
@@ -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);
 }
 
 /**
This page took 0.064071 seconds and 4 git commands to generate.