From 2c4d7b5fa44cbaa939115397b8385764e651de25 Mon Sep 17 00:00:00 2001 From: Alex Jia Date: Thu, 4 Aug 2011 13:30:19 +0800 Subject: [PATCH] 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 --- src/qemu/qemu_monitor_text.c | 1 - 1 file changed, 1 deletion(-) 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")); -- 2.47.2