* [PATCH v2] Fix code style same in one function
@ 2020-06-13 0:53 zzuedu2000
2020-06-14 2:14 ` [PATCH] Fix code style in css_task_iter_next_css_set() zzuedu2000
0 siblings, 1 reply; 2+ messages in thread
From: zzuedu2000 @ 2020-06-13 0:53 UTC (permalink / raw)
To: tj, lizefan, hannes; +Cc: cgroups, linux-kernel, weifenghai
From: weifenghai <zzuedu2000@163.com>
Combine two assignments for the variable “l” into one statement.
Signed-off-by: weifenghai <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] 2+ messages in thread
* Re: [PATCH] Fix code style in css_task_iter_next_css_set()
2020-06-13 0:53 [PATCH v2] Fix code style same in one function zzuedu2000
@ 2020-06-14 2:14 ` zzuedu2000
0 siblings, 0 replies; 2+ messages in thread
From: zzuedu2000 @ 2020-06-14 2:14 UTC (permalink / raw)
To: tj, lizefan, hannes; +Cc: cgroups, linux-kernel
Please ignore this patch, I will send a updated one later.
Regards,
Wei Fenghai
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-14 2:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-13 0:53 [PATCH v2] Fix code style same in one function zzuedu2000
2020-06-14 2:14 ` [PATCH] Fix code style in css_task_iter_next_css_set() zzuedu2000
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).