]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove duplicated qemuAgentCheckError
authorJohn Ferlan <jferlan@redhat.com>
Fri, 7 Sep 2018 20:01:26 +0000 (16:01 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 11 Sep 2018 14:31:36 +0000 (10:31 -0400)
Commit 5b3492fadb moved qemuAgentCheckError calls into
qemuAgentCommand for various reasons; however, subsequent
commit b1aa91e14 restored the call. So let's just remove
the duplicitous call from qemuAgentSetVCPUsCommand.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c

index 0a1f3195ddf30c3096f7be6956ac5f928f840a3c..102ac36f0ffed1c2fe37b5dd2cc2e5dc19387f1d 100644 (file)
@@ -1544,9 +1544,6 @@ qemuAgentSetVCPUsCommand(qemuAgentPtr mon,
                          VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK) < 0)
         goto cleanup;
 
-    if (qemuAgentCheckError(cmd, reply) < 0)
-        goto cleanup;
-
     /* All negative values are invalid. Return of 0 is bogus since we wouldn't
      * call the guest agent so that 0 cpus would be set successfully. Reporting
      * more successfully set vcpus that we've asked for is invalid. */