[PATCH 05/20] qemuMigrationCookieXMLParse: Remove comment mentioning that error was already set

Peter Krempa pkrempa at redhat.com
Fri Oct 2 08:57:39 UTC 2020


Most of our functions report errors so there's no need to mention it
here again.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/qemu/qemu_migration_cookie.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/qemu/qemu_migration_cookie.c b/src/qemu/qemu_migration_cookie.c
index a9dd2b9323..f7625a7991 100644
--- a/src/qemu/qemu_migration_cookie.c
+++ b/src/qemu/qemu_migration_cookie.c
@@ -1310,11 +1310,8 @@ qemuMigrationCookieXMLParse(qemuMigrationCookiePtr mig,
                                                 VIR_DOMAIN_DEF_PARSE_INACTIVE |
                                                 VIR_DOMAIN_DEF_PARSE_ABI_UPDATE_MIGRATION |
                                                 VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE);
-        if (!mig->persistent) {
-            /* virDomainDefParseNode already reported
-             * an error for us */
+        if (!mig->persistent)
             goto error;
-        }
     }

     if ((flags & QEMU_MIGRATION_COOKIE_NETWORK) &&
-- 
2.26.2




More information about the libvir-list mailing list