mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-03 23:16:55 +00:00
kvm: remove the duplicated cpumask_clear
zalloc_cpumask_var already cleared it. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
12274e96b4
commit
aee74f3bb3
@ -2604,7 +2604,6 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
|
|||||||
r = -ENOMEM;
|
r = -ENOMEM;
|
||||||
goto out_free_0;
|
goto out_free_0;
|
||||||
}
|
}
|
||||||
cpumask_clear(cpus_hardware_enabled);
|
|
||||||
|
|
||||||
r = kvm_arch_hardware_setup();
|
r = kvm_arch_hardware_setup();
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user