]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cgroup: remove duplicate code in allocate_cg_link()
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 30 Jul 2008 05:33:19 +0000 (22:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Jul 2008 16:41:44 +0000 (09:41 -0700)
commit36553434f475a84b653e25e74490ee8df43b86d5
tree869f827ebb4974674a26de22db6c15f122e63618
parent5a3eb9f6b7c598529f832b8baa6458ab1cbab2c6
cgroup: remove duplicate code in allocate_cg_link()

- just call free_cg_links() in allocate_cg_links()
- the list will get initialized in allocate_cg_links(), so don't init
  it twice

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c