]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainObjBeginJobInternal: Remove spurious @ret assignment
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jun 2018 08:20:15 +0000 (10:20 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 19 Jun 2018 05:08:12 +0000 (07:08 +0200)
The variable is initialized to -1 already. There's no way it can
be overwritten by the time control gets to the line I'm removing.

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

index be36a9e3e4b3cc389f2836a0466944d29ee7f44f..21d54938b69897451d3b62f4f0ac688154943229 100644 (file)
@@ -6490,7 +6490,6 @@ qemuDomainObjBeginJobInternal(virQEMUDriverPtr driver,
     else
         blocker = priv->job.asyncOwnerAPI;
 
-    ret = -1;
     if (errno == ETIMEDOUT) {
         if (blocker) {
             virReportError(VIR_ERR_OPERATION_TIMEOUT,