mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
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:
parent
a8743c3938
commit
17cba9fb51
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user