From: Michal Privoznik Date: Thu, 7 Jun 2018 08:20:15 +0000 (+0200) Subject: qemuDomainObjBeginJobInternal: Remove spurious @ret assignment X-Git-Tag: v4.5.0-rc1~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af0715bb61e4a430ea2fc7d3455af8222bbca9f1;p=thirdparty%2Flibvirt.git qemuDomainObjBeginJobInternal: Remove spurious @ret assignment 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 Reviewed-by: John Ferlan --- diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index be36a9e3e4..21d54938b6 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -6490,7 +6490,6 @@ qemuDomainObjBeginJobInternal(virQEMUDriverPtr driver, else blocker = priv->job.asyncOwnerAPI; - ret = -1; if (errno == ETIMEDOUT) { if (blocker) { virReportError(VIR_ERR_OPERATION_TIMEOUT,