]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuMonitorOpenInternal: remove redundant code
authorCao jin <caoj.fnst@cn.fujitsu.com>
Thu, 23 Jul 2015 10:16:31 +0000 (18:16 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Aug 2015 11:47:33 +0000 (13:47 +0200)
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>
src/qemu/qemu_monitor.c

index 4f30b158cef1e7151c0ad3a553f318afc271ab7e..15ba39b30fac378cb33b63fd9e756716738769c3 100644 (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",