From 8c3f86e2901cecca81760ebcb0560e99c3da0cff Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 30 Sep 2020 15:04:45 +0200 Subject: [PATCH] qemuMigrationCookieXMLParse: Remove comment mentioning that error was already set Most of our functions report errors so there's no need to mention it here again. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- 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 f901041ee1..f15dd6c4c0 100644 --- a/src/qemu/qemu_migration_cookie.c +++ b/src/qemu/qemu_migration_cookie.c @@ -1307,11 +1307,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) &&