From: williamsukatube@163.com To: tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Cc: William Dean <williamsukatube@163.com> Subject: [PATCH -next] cgroup: simplify code in cgroup_apply_control Date: Sat, 17 Sep 2022 16:40:39 +0800 [thread overview] Message-ID: <20220917084039.3177-1-williamsukatube@163.com> (raw) From: William Dean <williamsukatube@163.com> It could directly return 'cgroup_update_dfl_csses' to simplify code. Signed-off-by: William Dean <williamsukatube@163.com> --- kernel/cgroup/cgroup.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index e4bb5d57f4d1..1958f8bd93d6 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -3292,11 +3292,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); } /** -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: williamsukatube-9Onoh4P/yGk@public.gmane.org To: tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, lizefan.x-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org, hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: William Dean <williamsukatube-9Onoh4P/yGk@public.gmane.org> Subject: [PATCH -next] cgroup: simplify code in cgroup_apply_control Date: Sat, 17 Sep 2022 16:40:39 +0800 [thread overview] Message-ID: <20220917084039.3177-1-williamsukatube@163.com> (raw) From: William Dean <williamsukatube-9Onoh4P/yGk@public.gmane.org> It could directly return 'cgroup_update_dfl_csses' to simplify code. Signed-off-by: William Dean <williamsukatube-9Onoh4P/yGk@public.gmane.org> --- kernel/cgroup/cgroup.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index e4bb5d57f4d1..1958f8bd93d6 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -3292,11 +3292,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); } /**
next reply other threads:[~2022-09-17 8:41 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-17 8:40 williamsukatube [this message] 2022-09-17 8:40 ` [PATCH -next] cgroup: simplify code in cgroup_apply_control williamsukatube-9Onoh4P/yGk 2022-09-19 10:49 ` Mukesh Ojha 2022-09-19 10:49 ` Mukesh Ojha 2022-09-24 2:52 ` Tejun Heo 2022-09-24 2:52 ` Tejun Heo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220917084039.3177-1-williamsukatube@163.com \ --to=williamsukatube@163.com \ --cc=cgroups@vger.kernel.org \ --cc=hannes@cmpxchg.org \ --cc=linux-kernel@vger.kernel.org \ --cc=lizefan.x@bytedance.com \ --cc=tj@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.