9c6c51
From c39dd7dec2fe7ab631de9ef02a1d654385810750 Mon Sep 17 00:00:00 2001
9c6c51
Message-Id: <c39dd7dec2fe7ab631de9ef02a1d654385810750@dist-git>
9c6c51
From: John Ferlan <jferlan@redhat.com>
9c6c51
Date: Thu, 10 Jan 2019 12:49:10 +0100
9c6c51
Subject: [PATCH] qemu: Remove duplicated qemuAgentCheckError
9c6c51
MIME-Version: 1.0
9c6c51
Content-Type: text/plain; charset=UTF-8
9c6c51
Content-Transfer-Encoding: 8bit
9c6c51
9c6c51
Commit 5b3492fadb moved qemuAgentCheckError calls into
9c6c51
qemuAgentCommand for various reasons; however, subsequent
9c6c51
commit 0977b8aa0 adding a new command made call again
9c6c51
So let's just remove the duplicitous call from
9c6c51
qemuAgentGetInterfaces.
9c6c51
9c6c51
Signed-off-by: John Ferlan <jferlan@redhat.com>
9c6c51
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
9c6c51
(cherry picked from commit 9ed175fbc2deecfdaeabca7bc77c7e7ae33a3377)
9c6c51
Signed-off-by: Ján Tomko <jtomko@redhat.com>
9c6c51
9c6c51
7.7: https://bugzilla.redhat.com/show_bug.cgi?id=1663051
9c6c51
8.0: https://bugzilla.redhat.com/show_bug.cgi?id=1665000
9c6c51
9c6c51
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
9c6c51
---
9c6c51
 src/qemu/qemu_agent.c | 5 ++---
9c6c51
 1 file changed, 2 insertions(+), 3 deletions(-)
9c6c51
9c6c51
diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
9c6c51
index 10c6ef09fa..986e37b07d 100644
9c6c51
--- a/src/qemu/qemu_agent.c
9c6c51
+++ b/src/qemu/qemu_agent.c
9c6c51
@@ -1987,10 +1987,9 @@ qemuAgentGetInterfaces(qemuAgentPtr mon,
9c6c51
     if (!(cmd = qemuAgentMakeCommand("guest-network-get-interfaces", NULL)))
9c6c51
         goto cleanup;
9c6c51
 
9c6c51
-    if (qemuAgentCommand(mon, cmd, &reply, false, VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK) < 0 ||
9c6c51
-        qemuAgentCheckError(cmd, reply) < 0) {
9c6c51
+    if (qemuAgentCommand(mon, cmd, &reply, false,
9c6c51
+                         VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK) < 0)
9c6c51
         goto cleanup;
9c6c51
-    }
9c6c51
 
9c6c51
     if (!(ret_array = virJSONValueObjectGet(reply, "return"))) {
9c6c51
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
9c6c51
-- 
9c6c51
2.20.1
9c6c51