]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: avoid dead store in qemuMonitorTextBlockJob
authorAlex Jia <ajia@redhat.com>
Thu, 4 Aug 2011 05:30:19 +0000 (13:30 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 4 Aug 2011 14:09:31 +0000 (08:09 -0600)
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 <ajia@redhat.com>
src/qemu/qemu_monitor_text.c

index 84941f9d6205b7f4be74d643cbcb294ffbf05508..7bf733da7b7ace5675fb78332b5a91a3a6f05fad 100644 (file)
@@ -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"));