diff options
author | Tejun Heo <tj@kernel.org> | 2013-06-12 21:04:51 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-13 10:55:17 -0700 |
commit | f4f4be2bd2889c69a8698edef8dbfd4f6759aa87 (patch) | |
tree | 4f9bca9bc566527b44b5f3d87fbd93e3de18715a /kernel/rtmutex.h | |
parent | 69d0206c793a17431eacee2694ee7a4b25df76b7 (diff) | |
download | op-kernel-dev-f4f4be2bd2889c69a8698edef8dbfd4f6759aa87.zip op-kernel-dev-f4f4be2bd2889c69a8698edef8dbfd4f6759aa87.tar.gz |
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 <tj@kernel.org>
Cc: Kent Overstreet <koverstreet@google.com>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel/rtmutex.h')
0 files changed, 0 insertions, 0 deletions