ivshmem: no need for opaque argument

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
Marc-André Lureau 2015-12-18 12:20:51 +01:00
parent 10ae9d7638
commit 2c64846972
1 changed files with 2 additions and 2 deletions

View File

@ -350,11 +350,11 @@ static void ivshmem_vector_poll(PCIDevice *dev,
} }
} }
static CharDriverState* create_eventfd_chr_device(void * opaque, EventNotifier *n, static CharDriverState* create_eventfd_chr_device(IVShmemState *s,
EventNotifier *n,
int vector) int vector)
{ {
/* create a event character device based on the passed eventfd */ /* create a event character device based on the passed eventfd */
IVShmemState *s = opaque;
PCIDevice *pdev = PCI_DEVICE(s); PCIDevice *pdev = PCI_DEVICE(s);
int eventfd = event_notifier_get_fd(n); int eventfd = event_notifier_get_fd(n);
CharDriverState *chr; CharDriverState *chr;