remote: Remove unused remote_iohub_finalize
PATCH 1/1 remote: Remove unused remote_iohub_finalize
From: "Dr. David Alan Gilbert" <[email protected]>
remote_iohub_finalize has never been used.
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- hw/remote/iohub.c | 13 ------------- include/hw/remote/iohub.h | 1 - 2 files changed, 14 deletions(-)
hw/remote/iohub.c +0 -13
@@ -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;
include/hw/remote/iohub.h +0 -1
@@ -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
Signature · 1 line
2.46.1
Quoted 10 lines · On Sep 19, 2024, at 12:59 PM, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
remote_iohub_finalizehas never been used.Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Reviewed-by Jagannathan Raman <[email protected]>
Thanks, Dave!
Quoted 43 lines
---
hw/remote/iohub.c| 13 -------------include/hw/remote/iohub.h| 1 -2 files changed, 14 deletions(-)hw/remote/iohub.c +0
-13@@ -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;include/hw/remote/iohub.h +0
-2@@ -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 --2.46.1
Quoted 41 lines · On 19/09/2024 18.58, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
remote_iohub_finalizehas never been used.Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>--- hw/remote/iohub.c | 13 ------------- include/hw/remote/iohub.h | 1 - 2 files changed, 14 deletions(-)hw/remote/iohub.c +0
-13@@ -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;include/hw/remote/iohub.h +0
-0
include/hw/remote/iohub.h void remote_iohub_set_irq(void *opaque, int pirq, int level); · line 41
Quoted 6 lines
include/hw/remote/iohub.h +0
-1@@ -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
Reviewed-by Thomas Huth <[email protected]>