From: John Ferlan Date: Fri, 7 Sep 2018 20:01:27 +0000 (-0400) Subject: qemu: Remove duplicated qemuAgentCheckError X-Git-Tag: v4.8.0-rc1~226 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ed175fbc2deecfdaeabca7bc77c7e7ae33a3377;p=thirdparty%2Flibvirt.git qemu: Remove duplicated qemuAgentCheckError Commit 5b3492fadb moved qemuAgentCheckError calls into qemuAgentCommand for various reasons; however, subsequent commit 0977b8aa0 adding a new command made call again So let's just remove the duplicitous call from qemuAgentGetInterfaces. Signed-off-by: John Ferlan ACKed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 102ac36f0f..313362ac0f 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -2035,10 +2035,9 @@ qemuAgentGetInterfaces(qemuAgentPtr mon, if (!(cmd = qemuAgentMakeCommand("guest-network-get-interfaces", NULL))) goto cleanup; - if (qemuAgentCommand(mon, cmd, &reply, false, VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK) < 0 || - qemuAgentCheckError(cmd, reply) < 0) { + if (qemuAgentCommand(mon, cmd, &reply, false, + VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK) < 0) goto cleanup; - } if (!(ret_array = virJSONValueObjectGet(reply, "return"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s",