Received: from eggs.gnu.org ([2001:4830:134:3::10]:50921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwQe1-0006B3-3v for qemu-devel@nongnu.org; Tue, 18 Oct 2016 05:25:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwQdx-0000aH-Vw for qemu-devel@nongnu.org; Tue, 18 Oct 2016 05:25:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55720) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwQdx-0000Zo-Qa for qemu-devel@nongnu.org; Tue, 18 Oct 2016 05:25:09 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 18 Oct 2016 12:24:01 +0300 Message-Id: <20161018092405.21829-3-marcandre.lureau@redhat.com> In-Reply-To: <20161018092405.21829-1-marcandre.lureau@redhat.com> References: <20161018092405.21829-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 2/6] tests/vhost-user-bridge: remove unnecessary dispatcher_remove List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: felipe@nutanix.com, victork@redhat.com, mst@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= The call fd is not watched Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/vhost-user-bridge.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index e91279b..19b0e94 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -979,7 +979,6 @@ vubr_get_vring_base_exec(VubrDev *dev, VhostUserMsg *= vmsg) =20 if (dev->vq[index].call_fd !=3D -1) { close(dev->vq[index].call_fd); - dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd); dev->vq[index].call_fd =3D -1; } if (dev->vq[index].kick_fd !=3D -1) { @@ -1043,7 +1042,6 @@ vubr_set_vring_call_exec(VubrDev *dev, VhostUserMsg= *vmsg) =20 if (dev->vq[index].call_fd !=3D -1) { close(dev->vq[index].call_fd); - dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd); } dev->vq[index].call_fd =3D vmsg->fds[0]; DPRINT("Got call_fd: %d for vq: %d\n", vmsg->fds[0], index); --=20 2.10.0