public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cgroup: Refactor two assignments in css_task_iter_next_css_set()
@ 2020-06-14  2:28 zzuedu2000
  2020-06-14 18:10 ` James Bottomley
  0 siblings, 1 reply; 4+ messages in thread
From: zzuedu2000 @ 2020-06-14  2:28 UTC (permalink / raw)
  To: tj, lizefan, hannes
  Cc: cgroups, linux-kernel, Markus.Elfring, songmuchun, buddy.zhang,
	Wei Fenghai

From: Wei Fenghai <zzuedu2000@163.com>

Combine two assignments for the variable ‘l’ into one statement.

Signed-off-by: Wei Fenghai <zzuedu2000@163.com>
---
 kernel/cgroup/cgroup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 1ea181a58465..c3e6db6e44d8 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -4352,8 +4352,7 @@ static struct css_set *css_task_iter_next_css_set(struct css_task_iter *it)
 	}
 
 	/* find the next cset */
-	l = it->cset_pos;
-	l = l->next;
+	l = it->cset_pos->next;
 	if (l == it->cset_head) {
 		it->cset_pos = NULL;
 		return NULL;
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-15  1:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-14  2:28 [PATCH] cgroup: Refactor two assignments in css_task_iter_next_css_set() zzuedu2000
2020-06-14 18:10 ` James Bottomley
2020-06-14 23:22   ` zzuedu2000
2020-06-15  1:11     ` Zefan Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox