mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 05:44:31 +08:00
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>
This commit is contained in:
parent
f6161aa153
commit
e87b686b51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user