No reason to do it, the notifiers are zeroed out, so fd getter
will report -1 correctly.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
---
 hw/remote/iohub.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/hw/remote/iohub.c b/hw/remote/iohub.c
index 988d3285ccc..58a6e5b4280 100644
--- a/hw/remote/iohub.c
+++ b/hw/remote/iohub.c
@@ -28,8 +28,6 @@ void remote_iohub_init(RemoteIOHubState *iohub)
     for (pirq = 0; pirq < REMOTE_IOHUB_NB_PIRQS; pirq++) {
         qemu_mutex_init(&iohub->irq_level_lock[pirq]);
         iohub->irq_level[pirq] = 0;
-        event_notifier_init_fd(&iohub->irqfds[pirq], -1);
-        event_notifier_init_fd(&iohub->resamplefds[pirq], -1);
     }
 }
 
-- 
2.43.0


Reply via email to