qemuMonitorOpenInternal: remove redundant code

There's no need to set mon->fd to a dummy value since
it's initialized to proper value just a few lines below.

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
This commit is contained in:
Cao jin 2015-07-23 18:16:31 +08:00 committed by Michal Privoznik
parent a8743c3938
commit 17cba9fb51

View File

@ -838,7 +838,6 @@ qemuMonitorOpenInternal(virDomainObjPtr vm,
if (!(mon = virObjectLockableNew(qemuMonitorClass)))
return NULL;
mon->fd = -1;
mon->logfd = -1;
if (virCondInit(&mon->notify) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",