Some callers explicitly set fd to -1, to mark event_notifier "uninitialized". In the same time, we have .uninitialized field in the notifier itself. Let's cleanup the mess.
Vladimir Sementsov-Ogievskiy (4): util/event_notifier: return -1 for uninitialized notifiers remote/iohub: stop set event notifiers to -1 vhost: stop set event notifier to -1 util/event_notifier: assert that init_fd receives a valid fd hw/remote/iohub.c | 2 -- hw/virtio/vhost-shadow-virtqueue.c | 32 +++++++++++++++++------------- include/qemu/event_notifier.h | 1 + util/event_notifier-posix.c | 5 +++-- 4 files changed, 22 insertions(+), 18 deletions(-) -- 2.43.0
