mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cpumask: use zalloc_cpumask_var() where possible
Remove open-coded zalloc_cpumask_var() and zalloc_cpumask_var_node(). Signed-off-by: Li Zefan <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
parent
a724eada8c
commit
79f5599772
9 changed files with 14 additions and 30 deletions
|
|
@ -154,9 +154,8 @@ int sync_start(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
if (!alloc_cpumask_var(&marked_cpus, GFP_KERNEL))
|
||||
if (!zalloc_cpumask_var(&marked_cpus, GFP_KERNEL))
|
||||
return -ENOMEM;
|
||||
cpumask_clear(marked_cpus);
|
||||
|
||||
start_cpu_work();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue