提交 e2863e77 编写于 作者: P Pavel Fedin 提交者: Ján Tomko

Removed unneeded check

Since test suite now correctly creates capabilities cache, the hack is not
needed any more.
Signed-off-by: NPavel Fedin <p.fedin@samsung.com>
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 0636c4a8
......@@ -1040,9 +1040,6 @@ qemuDomainDefPostParse(virDomainDefPtr def,
return ret;
/* This condition is actually a (temporary) hack for test suite which
* does not create capabilities cache */
if (driver && driver->qemuCapsCache)
qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator);
/* Add implicit PCI root controller if the machine has one */
......@@ -1242,9 +1239,6 @@ qemuDomainDeviceDefPostParse(virDomainDeviceDefPtr dev,
if (driver)
cfg = virQEMUDriverGetConfig(driver);
/* This condition is actually a (temporary) hack for test suite which
* does not create capabilities cache */
if (driver && driver->qemuCapsCache)
qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator);
if (dev->type == VIR_DOMAIN_DEVICE_NET &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册