]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/vhost-user-bridge: remove unnecessary dispatcher_remove
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 18 Oct 2016 09:24:01 +0000 (12:24 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 23:14:37 +0000 (01:14 +0200)
The call fd is not watched

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/vhost-user-bridge.c

index e91279b91e8be73fa3dfb3382de5977f5607f8db..19b0e94258666d8fa4b2ac03f5180f198fc77a4f 100644 (file)
@@ -979,7 +979,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) {
@@ -1043,7 +1042,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);