mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
qemu: caps: Don't check capability before clearing it
Checking whether a qemu capability set right before clearing it without any other logic doesn't make sense. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
78c2a8b934
commit
a64265f440
@ -4602,8 +4602,7 @@ virQEMUCapsInitProcessCaps(virQEMUCapsPtr qemuCaps)
|
|||||||
/* Prealloc on NVDIMMs is broken on older QEMUs leading to
|
/* Prealloc on NVDIMMs is broken on older QEMUs leading to
|
||||||
* user data corruption. If we are dealing with such version
|
* user data corruption. If we are dealing with such version
|
||||||
* of QEMU pretend we don't know how to NVDIMM. */
|
* of QEMU pretend we don't know how to NVDIMM. */
|
||||||
if (qemuCaps->version < 2009000 &&
|
if (qemuCaps->version < 2009000)
|
||||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_NVDIMM))
|
|
||||||
virQEMUCapsClear(qemuCaps, QEMU_CAPS_DEVICE_NVDIMM);
|
virQEMUCapsClear(qemuCaps, QEMU_CAPS_DEVICE_NVDIMM);
|
||||||
|
|
||||||
if (ARCH_IS_X86(qemuCaps->arch) &&
|
if (ARCH_IS_X86(qemuCaps->arch) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user