diff options
author | Alexandru Gheorghiu <gheorghiuandru@gmail.com> | 2013-03-09 04:40:43 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-03-11 03:33:01 -0400 |
commit | e87b686b5109e171438a0529828d3109b7ad6da3 (patch) | |
tree | 62e83d39aca9929bae746067f194d9797dbac157 | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 (diff) |
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>
-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 98718f604eb6..5c86786bbfd2 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) | |||
159 | { | 159 | { |
160 | int cpu; | 160 | int cpu; |
161 | 161 | ||
162 | blade_info = kmalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL); | 162 | blade_info = kzalloc(uv_possible_blades * sizeof(void *), GFP_KERNEL); |
163 | if (!blade_info) | 163 | if (!blade_info) |
164 | return -ENOMEM; | 164 | return -ENOMEM; |
165 | memset(blade_info, 0, uv_possible_blades * sizeof(void *)); | ||
166 | 165 | ||
167 | for_each_present_cpu(cpu) { | 166 | for_each_present_cpu(cpu) { |
168 | int nid = cpu_to_node(cpu); | 167 | int nid = cpu_to_node(cpu); |