]> xenbits.xensource.com Git - libvirt.git/commitdiff
cleanup: qemu_capabilities: remove redundant error messages
authorChen Hanxiao <chenhanxiao@gmail.com>
Tue, 21 Mar 2017 11:58:27 +0000 (19:58 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Mar 2017 14:38:29 +0000 (15:38 +0100)
We reported error in caller virQEMUCapsCacheLookupByArch.
So the same error messages in qemuConnectGetDomainCapabilities
is useless.

Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
src/qemu/qemu_driver.c

index dcd823f53cf4f94d53d54cf38b018d1bf23e9cfa..0e065081db1b6d5aaeaabe49bce4259635e1b8ef 100644 (file)
@@ -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);
     }