aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-10-18 12:24:01 +0300
committerMichael S. Tsirkin <mst@redhat.com>2016-12-16 01:14:37 +0200
commit4e4212d0566e4daa0b8eff9029cafb4a6ac207c1 (patch)
treed6c4b96bcaec9f5bb1ef491fd2ff6321e115add9 /tests
parent3d1ad18c4257471cd5fda8397a46457735027b2c (diff)
downloadqemu-4e4212d0566e4daa0b8eff9029cafb4a6ac207c1.zip
qemu-4e4212d0566e4daa0b8eff9029cafb4a6ac207c1.tar.gz
qemu-4e4212d0566e4daa0b8eff9029cafb4a6ac207c1.tar.bz2
tests/vhost-user-bridge: remove unnecessary dispatcher_remove
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/vhost-user-bridge.c2
1 files changed, 0 insertions, 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)
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);