[libvirt] [PATCH] cleanup: qemu_capabilities: remove redundant error messages

Chen Hanxiao chen_han_xiao at 126.com
Wed Mar 8 04:14:17 UTC 2017


From: Chen Hanxiao <chenhanxiao at gmail.com>

We reported error in caller qemuConnectGetDomainCapabilities.
So the same error messages in virQEMUCapsCacheLookupByArch
are useless.

Signed-off-by: Chen Hanxiao <chenhanxiao at gmail.com>
---
 src/qemu/qemu_capabilities.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 5a3b4ac..eca46e7 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -5192,10 +5192,6 @@ virQEMUCapsCacheLookupByArch(virCapsPtr caps,
             virQEMUCapsCacheValidate(cache, binary, caps, &ret);
             VIR_FREE(binary);
         }
-    } else {
-        virReportError(VIR_ERR_INVALID_ARG,
-                       _("unable to find any emulator to serve '%s' "
-                         "architecture"), virArchToString(arch));
     }
 
     virObjectRef(ret);
-- 
2.7.4





More information about the libvir-list mailing list