From: Tejun Heo Date: Thu, 13 Jun 2013 04:04:51 +0000 (-0700) Subject: cgroup: use kzalloc() instead of kmalloc() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~44^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4f4be2bd2889c69a8698edef8dbfd4f6759aa87;p=pandora-kernel.git cgroup: use kzalloc() instead of kmalloc() There's no point in using kmalloc() instead of the clearing variant for trivial stuff. We can live dangerously elsewhere. Use kzalloc() instead and drop 0 inits. While at it, do trivial code reorganization in cgroup_file_open(). This patch doesn't introduce any functional changes. v2: I was caught in the very distant past where list_del() didn't poison and the initial version converted list_del()s to list_del_init()s too. Li and Kent took me out of the stasis chamber. Signed-off-by: Tejun Heo Cc: Kent Overstreet Acked-by: Li Zefan --- Reading git-diff-tree failed