mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
cgroup: remove duplicate code in find_css_set()
The list head res->tasks gets initialized twice in find_css_set(). Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8d53d55d27
commit
68db38f153
1 changed files with 0 additions and 1 deletions
|
@ -470,7 +470,6 @@ static struct css_set *find_css_set(
|
|||
/* Link this cgroup group into the list */
|
||||
list_add(&res->list, &init_css_set.list);
|
||||
css_set_count++;
|
||||
INIT_LIST_HEAD(&res->tasks);
|
||||
write_unlock(&css_set_lock);
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Reference in a new issue