diff options
author | Markus Armbruster | 2016-03-15 19:34:28 +0100 |
---|---|---|
committer | Markus Armbruster | 2016-03-21 21:29:00 +0100 |
commit | e64befe929cc4c4a53a79ff469b1b52c210a3468 (patch) | |
tree | 0022763bc2f4538034d335805de5b872f14b58f5 /hw | |
parent | ivshmem: Compile debug prints unconditionally to prevent bit-rot (diff) | |
download | qemu-e64befe929cc4c4a53a79ff469b1b52c210a3468.tar.gz qemu-e64befe929cc4c4a53a79ff469b1b52c210a3468.tar.xz qemu-e64befe929cc4c4a53a79ff469b1b52c210a3468.zip |
ivshmem: Clean up after commit 9940c32
IVShmemState member eventfd_chr is useless since commit 9940c32. Drop
it.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1458066895-20632-14-git-send-email-armbru@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/misc/ivshmem.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 6ac8c0d707..9ea79ab01d 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -79,7 +79,6 @@ typedef struct IVShmemState { uint32_t intrmask; uint32_t intrstatus; - CharDriverState **eventfd_chr; CharDriverState *server_chr; Fifo8 incoming_fifo; MemoryRegion ivshmem_mmio; @@ -942,8 +941,6 @@ static void pci_ivshmem_realize(PCIDevice *dev, Error **errp) pci_register_bar(dev, 2, attr, &s->bar); - s->eventfd_chr = g_malloc0(s->vectors * sizeof(CharDriverState *)); - qemu_chr_add_handlers(s->server_chr, ivshmem_can_receive, ivshmem_check_version, ivshmem_event, s); } else { @@ -1007,15 +1004,6 @@ static void pci_ivshmem_exit(PCIDevice *dev) memory_region_del_subregion(&s->bar, &s->ivshmem); } - if (s->eventfd_chr) { - for (i = 0; i < s->vectors; i++) { - if (s->eventfd_chr[i]) { - qemu_chr_free(s->eventfd_chr[i]); - } - } - g_free(s->eventfd_chr); - } - if (s->peers) { for (i = 0; i < s->nb_peers; i++) { close_peer_eventfds(s, i); |