]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
remote: Remove unused remote_iohub_finalize
authorDr. David Alan Gilbert <dave@treblig.org>
Thu, 19 Sep 2024 16:58:52 +0000 (17:58 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 3 Oct 2024 14:26:06 +0000 (17:26 +0300)
remote_iohub_finalize has never been used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/remote/iohub.c
include/hw/remote/iohub.h

index 40dfee4bad43c1753247c9a7dd9f1807271a627c..988d3285ccc4eff77fbc6d355a275e18640c05fa 100644 (file)
@@ -33,19 +33,6 @@ void remote_iohub_init(RemoteIOHubState *iohub)
     }
 }
 
-void remote_iohub_finalize(RemoteIOHubState *iohub)
-{
-    int pirq;
-
-    for (pirq = 0; pirq < REMOTE_IOHUB_NB_PIRQS; pirq++) {
-        qemu_set_fd_handler(event_notifier_get_fd(&iohub->resamplefds[pirq]),
-                            NULL, NULL, NULL);
-        event_notifier_cleanup(&iohub->irqfds[pirq]);
-        event_notifier_cleanup(&iohub->resamplefds[pirq]);
-        qemu_mutex_destroy(&iohub->irq_level_lock[pirq]);
-    }
-}
-
 int remote_iohub_map_irq(PCIDevice *pci_dev, int intx)
 {
     return pci_dev->devfn;
index 6a8444f9a97fca1c722a930cbdc9ef36a588029b..09ee6c77b68c74389c5763b803ce1d283cfa878b 100644 (file)
@@ -37,6 +37,5 @@ void remote_iohub_set_irq(void *opaque, int pirq, int level);
 void process_set_irqfd_msg(PCIDevice *pci_dev, MPQemuMsg *msg);
 
 void remote_iohub_init(RemoteIOHubState *iohub);
-void remote_iohub_finalize(RemoteIOHubState *iohub);
 
 #endif