Skip to content

Commit

Permalink
ivshmem: Drop ivshmem_event() stub
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1458066895-20632-15-git-send-email-armbru@redhat.com>
  • Loading branch information
Markus Armbruster committed Mar 21, 2016
1 parent e64befe commit c20fc0c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions hw/misc/ivshmem.c
Expand Up @@ -267,11 +267,6 @@ static int ivshmem_can_receive(void * opaque)
return sizeof(int64_t);
}

static void ivshmem_event(void *opaque, int event)
{
IVSHMEM_DPRINTF("ivshmem_event %d\n", event);
}

static void ivshmem_vector_notify(void *opaque)
{
MSIVector *entry = opaque;
Expand Down Expand Up @@ -720,7 +715,7 @@ static void ivshmem_check_version(void *opaque, const uint8_t * buf, int size)

IVSHMEM_DPRINTF("version check ok, switch to real chardev handler\n");
qemu_chr_add_handlers(s->server_chr, ivshmem_can_receive, ivshmem_read,
ivshmem_event, s);
NULL, s);
}

/* Select the MSI-X vectors used by device.
Expand Down Expand Up @@ -942,7 +937,7 @@ static void pci_ivshmem_realize(PCIDevice *dev, Error **errp)
pci_register_bar(dev, 2, attr, &s->bar);

qemu_chr_add_handlers(s->server_chr, ivshmem_can_receive,
ivshmem_check_version, ivshmem_event, s);
ivshmem_check_version, NULL, s);
} else {
/* just map the file immediately, we're not using a server */
int fd;
Expand Down

0 comments on commit c20fc0c

Please sign in to comment.