From: Chen Hanxiao <chenhanxiao(a)gmail.com>
We reported error in caller virQEMUCapsCacheLookupByArch.
So the same error messages in qemuConnectGetDomainCapabilities
is useless.
Signed-off-by: Chen Hanxiao <chenhanxiao(a)gmail.com>
---
v2:
remove extra error message in qemuConnectGetDomainCapabilities
instead of virQEMUCapsCacheLookupByArch.
src/qemu/qemu_driver.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index dcd823f..0e06508 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -18713,12 +18713,8 @@ qemuConnectGetDomainCapabilities(virConnectPtr conn,
} else {
if (!(qemuCaps = virQEMUCapsCacheLookupByArch(caps,
driver->qemuCapsCache,
- arch))) {
- virReportError(VIR_ERR_INVALID_ARG,
- _("unable to find any emulator to serve '%s'
"
- "architecture"), virArchToString(arch));
+ arch)))
goto cleanup;
- }
emulatorbin = virQEMUCapsGetBinary(qemuCaps);
}
--
2.7.4