diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-09 09:40:43 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-03-11 07:33:01 (GMT) |
commit | e87b686b5109e171438a0529828d3109b7ad6da3 (patch) | |
tree | 62e83d39aca9929bae746067f194d9797dbac157 /arch | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) | |
download | linux-e87b686b5109e171438a0529828d3109b7ad6da3.tar.xz |
x86/platform/uv: Replace kmalloc() & memset with kzalloc()
This was found using coccicheck.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Link: http://lkml.kernel.org/r/1362822043-15559-1-git-send-email-gheorghiuandru@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/platform/uv/uv_time.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/platform/uv/uv_time.c b/arch/x86/platform/uv/uv_time.c index 98718f6..5c86786 100644 --- a/arch/x86/platform/uv/uv_time.c +++ b/arch/x86/platform/uv/uv_time.c @@ -159,10 +159,9 @@ static __init int uv_rtc_allocate_timers(void) { int cpu; - blade_info = kmalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL); + blade_info = kzalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL); if (!blade_info) return -ENOMEM; - memset(blade_info, 0, uv_possible_blades * sizeof(void *)); for_each_present_cpu(cpu) { int nid = cpu_to_node(cpu); |