summaryrefslogtreecommitdiff
path: root/arch/ia64/kernel/perfmon.c
diff options
context:
space:
mode:
authorYan Burman <burman.yan@gmail.com>2006-12-04 22:58:35 (GMT)
committerTony Luck <tony.luck@intel.com>2006-12-07 21:46:43 (GMT)
commit52fd91088bcbaea5ab441d09d39c21eb684e54ea (patch)
treeeb267a56aebd72cad95d388806046137e2a5b577 /arch/ia64/kernel/perfmon.c
parent66888a6e5ffc756b9a4115fc766ee2258eefb928 (diff)
downloadlinux-52fd91088bcbaea5ab441d09d39c21eb684e54ea.tar.xz
[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>
Diffstat (limited to 'arch/ia64/kernel/perfmon.c')
-rw-r--r--arch/ia64/kernel/perfmon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
index 3aaede0..fa4a1a7 100644
--- a/arch/ia64/kernel/perfmon.c
+++ b/arch/ia64/kernel/perfmon.c
@@ -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;