cpumask: use zalloc_cpumask_var() where possible
Remove open-coded zalloc_cpumask_var() and zalloc_cpumask_var_node(). Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -884,13 +884,12 @@ static int efx_wanted_rx_queues(void)
|
||||
int count;
|
||||
int cpu;
|
||||
|
||||
if (unlikely(!alloc_cpumask_var(&core_mask, GFP_KERNEL))) {
|
||||
if (unlikely(!zalloc_cpumask_var(&core_mask, GFP_KERNEL))) {
|
||||
printk(KERN_WARNING
|
||||
"sfc: RSS disabled due to allocation failure\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
cpumask_clear(core_mask);
|
||||
count = 0;
|
||||
for_each_online_cpu(cpu) {
|
||||
if (!cpumask_test_cpu(cpu, core_mask)) {
|
||||
|
Reference in New Issue
Block a user