Commit e87b686b authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Ingo Molnar

x86/platform/uv: Replace kmalloc() & memset with kzalloc()

This was found using coccicheck.
Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Link: http://lkml.kernel.org/r/1362822043-15559-1-git-send-email-gheorghiuandru@gmail.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent f6161aa1
...@@ -159,10 +159,9 @@ static __init int uv_rtc_allocate_timers(void) ...@@ -159,10 +159,9 @@ static __init int uv_rtc_allocate_timers(void)
{ {
int cpu; 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) if (!blade_info)
return -ENOMEM; return -ENOMEM;
memset(blade_info, 0, uv_possible_blades * sizeof(void *));
for_each_present_cpu(cpu) { for_each_present_cpu(cpu) {
int nid = cpu_to_node(cpu); int nid = cpu_to_node(cpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment