qemu: kill some dead stores

Spotted by clang.

* src/qemu/qemu_monitor.c (qemuMonitorClose): Kill dead store.
* src/qemu/qemu_driver.c (qemudDomainSaveImageStartVM): Likewise.
This commit is contained in:
Eric Blake 2010-07-30 11:33:26 -06:00
parent c52b90ed6c
commit 68e4be71be
2 changed files with 1 additions and 4 deletions

View File

@ -6535,7 +6535,6 @@ qemudDomainSaveImageStartVM(virConnectPtr conn,
wait_ret = qemudDomainSaveImageClose(fd, read_pid, &status);
fd = -1;
if (read_pid != -1) {
read_pid = -1;
if (wait_ret == -1) {
virReportSystemError(errno,
_("failed to wait for process reading '%s'"),

View File

@ -685,8 +685,6 @@ cleanup:
void qemuMonitorClose(qemuMonitorPtr mon)
{
int refs;
if (!mon)
return;
@ -706,7 +704,7 @@ void qemuMonitorClose(qemuMonitorPtr mon)
mon->closed = 1;
}
if ((refs = qemuMonitorUnref(mon)) > 0)
if (qemuMonitorUnref(mon) > 0)
qemuMonitorUnlock(mon);
}