X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=hw%2Fivshmem.c;h=7d4123cc38a5351550722c5afc8ec6ca716ff316;hb=f90c2bcdbc69e41e575f868b984c3e2de8f51bac;hp=8b49eee8e921334572fda08c9870dc3590d78f60;hpb=572992eefa74bfb92c24a28bd268de91a9311b0f;p=qemu.git diff --git a/hw/ivshmem.c b/hw/ivshmem.c index 8b49eee8e..7d4123cc3 100644 --- a/hw/ivshmem.c +++ b/hw/ivshmem.c @@ -760,7 +760,7 @@ static int pci_ivshmem_init(PCIDevice *dev) return 0; } -static int pci_ivshmem_uninit(PCIDevice *dev) +static void pci_ivshmem_uninit(PCIDevice *dev) { IVShmemState *s = DO_UPCAST(IVShmemState, dev, dev); @@ -775,8 +775,6 @@ static int pci_ivshmem_uninit(PCIDevice *dev) memory_region_destroy(&s->ivshmem); memory_region_destroy(&s->bar); unregister_savevm(&dev->qdev, "ivshmem", s); - - return 0; } static Property ivshmem_properties[] = {