From: Marc-André Lureau Date: Fri, 18 Dec 2015 11:20:51 +0000 (+0100) Subject: ivshmem: no need for opaque argument X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2c64846972897fc3aec4072f849fae2b00322f8b;p=qmiga%2Fqemu.git ivshmem: no need for opaque argument Signed-off-by: Marc-André Lureau Reviewed-by: Markus Armbruster --- diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index d5c89aeca1..358df2407a 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -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) { /* create a event character device based on the passed eventfd */ - IVShmemState *s = opaque; PCIDevice *pdev = PCI_DEVICE(s); int eventfd = event_notifier_get_fd(n); CharDriverState *chr;