diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-02-23 18:24:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-23 20:13:25 -0500 |
commit | 68db38f1537a44097e264f28bda751d6b919cd53 (patch) | |
tree | efc311bb2825ea0ce78189dcc6a2704f9adecd9b /kernel/cgroup.c | |
parent | 8d53d55d27754508e58e9ac18a4a445b110434bf (diff) |
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>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 841259361724..2aa408201aa5 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -470,7 +470,6 @@ static struct css_set *find_css_set( | |||
470 | /* Link this cgroup group into the list */ | 470 | /* Link this cgroup group into the list */ |
471 | list_add(&res->list, &init_css_set.list); | 471 | list_add(&res->list, &init_css_set.list); |
472 | css_set_count++; | 472 | css_set_count++; |
473 | INIT_LIST_HEAD(&res->tasks); | ||
474 | write_unlock(&css_set_lock); | 473 | write_unlock(&css_set_lock); |
475 | 474 | ||
476 | return res; | 475 | return res; |