[IA64] replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman <burman.yan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
@@ -853,9 +853,8 @@ pfm_context_alloc(void)
|
||||
* allocate context descriptor
|
||||
* must be able to free with interrupts disabled
|
||||
*/
|
||||
ctx = kmalloc(sizeof(pfm_context_t), GFP_KERNEL);
|
||||
ctx = kzalloc(sizeof(pfm_context_t), GFP_KERNEL);
|
||||
if (ctx) {
|
||||
memset(ctx, 0, sizeof(pfm_context_t));
|
||||
DPRINT(("alloc ctx @%p\n", ctx));
|
||||
}
|
||||
return ctx;
|
||||
|
Reference in New Issue
Block a user