From: Cao jin Date: Thu, 23 Jul 2015 10:16:31 +0000 (+0800) Subject: qemuMonitorOpenInternal: remove redundant code X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=17cba9fb511adf82118d49b1d1a62abce99796a8;p=libvirt.git 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 --- diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 4f30b158ce..15ba39b30f 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -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",