提交 f9144125 编写于 作者: C Chen Hanxiao 提交者: Michal Privoznik

cleanup: qemu_capabilities: remove redundant error messages

We reported error in caller virQEMUCapsCacheLookupByArch.
So the same error messages in qemuConnectGetDomainCapabilities
is useless.
Signed-off-by: NChen Hanxiao <chenhanxiao@gmail.com>
上级 a3fb3a35
...@@ -18713,12 +18713,8 @@ qemuConnectGetDomainCapabilities(virConnectPtr conn, ...@@ -18713,12 +18713,8 @@ qemuConnectGetDomainCapabilities(virConnectPtr conn,
} else { } else {
if (!(qemuCaps = virQEMUCapsCacheLookupByArch(caps, if (!(qemuCaps = virQEMUCapsCacheLookupByArch(caps,
driver->qemuCapsCache, driver->qemuCapsCache,
arch))) { arch)))
virReportError(VIR_ERR_INVALID_ARG,
_("unable to find any emulator to serve '%s' "
"architecture"), virArchToString(arch));
goto cleanup; goto cleanup;
}
emulatorbin = virQEMUCapsGetBinary(qemuCaps); emulatorbin = virQEMUCapsGetBinary(qemuCaps);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册