diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 7d14222781a4e6e2e7f1e614936d7ffe69a84e2a..dcfc8cc5fc94879bec8657714b0fe42c6a24095b 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -355,12 +355,9 @@ static CharDriverState* create_eventfd_chr_device(IVShmemState *s, int vector) { /* create a event character device based on the passed eventfd */ - PCIDevice *pdev = PCI_DEVICE(s); int eventfd = event_notifier_get_fd(n); CharDriverState *chr; - s->msi_vectors[vector].pdev = pdev; - chr = qemu_chr_open_eventfd(eventfd); if (chr == NULL) {