From: Alex Jia Date: Thu, 4 Aug 2011 05:30:19 +0000 (+0800) Subject: qemu: avoid dead store in qemuMonitorTextBlockJob X-Git-Tag: v0.9.5-rc1~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c4d7b5fa44cbaa939115397b8385764e651de25;p=thirdparty%2Flibvirt.git qemu: avoid dead store in qemuMonitorTextBlockJob Value stored to 'ret' is never read, so remove this dead assignment. * src/qemu/qemu_monitor_text.c: kill dead assignment. Signed-off-by: Alex Jia --- diff --git a/src/qemu/qemu_monitor_text.c b/src/qemu/qemu_monitor_text.c index 84941f9d62..7bf733da7b 100644 --- a/src/qemu/qemu_monitor_text.c +++ b/src/qemu/qemu_monitor_text.c @@ -2981,7 +2981,6 @@ int qemuMonitorTextBlockJob(qemuMonitorPtr mon, return -1; } - ret = 0; if (qemuMonitorHMPCommand(mon, cmd, &reply) < 0) { qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("cannot run monitor command"));