From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aotjH-0000I3-Sr for qemu-devel@nongnu.org; Sat, 09 Apr 2016 10:19:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aotjH-0004N6-1y for qemu-devel@nongnu.org; Sat, 09 Apr 2016 10:19:15 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:32801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aotjG-0004N1-U2 for qemu-devel@nongnu.org; Sat, 09 Apr 2016 10:19:14 -0400 Received: by mail-qk0-x22c.google.com with SMTP id k135so50957989qke.0 for ; Sat, 09 Apr 2016 07:19:14 -0700 (PDT) Sender: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= From: marcandre.lureau@redhat.com Date: Sat, 9 Apr 2016 16:19:03 +0200 Message-Id: <1460211547-9264-3-git-send-email-marcandre.lureau@redhat.com> In-Reply-To: <1460211547-9264-1-git-send-email-marcandre.lureau@redhat.com> References: <1460211547-9264-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC 2/6] vubr: remove unnecessary dispatcher_remove List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: victork@redhat.com, mst@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-André Lureau The call fd is not watched Signed-off-by: Marc-André 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 7d548d8..b9bf018 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -975,7 +975,6 @@ vubr_get_vring_base_exec(VubrDev *dev, VhostUserMsg *vmsg) if (dev->vq[index].call_fd != -1) { close(dev->vq[index].call_fd); - dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd); dev->vq[index].call_fd = -1; } if (dev->vq[index].kick_fd != -1) { @@ -1039,7 +1038,6 @@ vubr_set_vring_call_exec(VubrDev *dev, VhostUserMsg *vmsg) if (dev->vq[index].call_fd != -1) { close(dev->vq[index].call_fd); - dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd); } dev->vq[index].call_fd = vmsg->fds[0]; DPRINT("Got call_fd: %d for vq: %d\n", vmsg->fds[0], index); -- 2.5.5