]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ipc: replace kmalloc and memset in get_undo_list with kzalloc
authorMatt Helsley <matthltc@us.ibm.com>
Mon, 2 Oct 2006 09:18:25 +0000 (02:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:22 +0000 (07:57 -0700)
commit7743ee555d2d2954bf9471be0c4615e2c1321c24
treef684fbca3edfdcaeca3618a0c518bcf39418c9fc
parent58c4fe89d8bdf9c65f497e3de7a4433490790f9c
[PATCH] ipc: replace kmalloc and memset in get_undo_list with kzalloc

Simplify get_undo_list() by dropping the unnecessary cast, removing the
size variable, and switching to kzalloc() instead of a kmalloc() followed
by a memset().

This cleanup was split then modified from Jes Sorenson's Task Notifiers
patches.

Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Cc: Jes Sorensen <jes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
ipc/sem.c