From 17cba9fb511adf82118d49b1d1a62abce99796a8 Mon Sep 17 00:00:00 2001 From: Cao jin Date: Thu, 23 Jul 2015 18:16:31 +0800 Subject: [PATCH] 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 --- src/qemu/qemu_monitor.c | 1 - 1 file changed, 1 deletion(-) 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", -- 2.47.2