From 85d91e3295f3af21e4d4a19f1f6691c0bf2ed10c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 26 Mar 2013 11:07:59 +0100 Subject: qemu-char: Move incrementing of avail_connections to qdev-properties-system The decrement of avail_connections is done in qdev-properties-system move the increment there too for proper balancing of the calls. Signed-off-by: Hans de Goede Message-id: 1364292483-16564-8-git-send-email-hdegoede@redhat.com Signed-off-by: Anthony Liguori --- qemu-char.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'qemu-char.c') diff --git a/qemu-char.c b/qemu-char.c index bab2eb7a9a..ca9381bc0c 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -224,8 +224,6 @@ void qemu_chr_add_handlers(CharDriverState *s, int fe_open; if (!opaque && !fd_can_read && !fd_read && !fd_event) { - /* chr driver being released. */ - ++s->avail_connections; fe_open = 0; } else { fe_open = 1; -- cgit 1.4.1