]> git.proxmox.com Git - mirror_qemu.git/commitdiff
event-notifier: Always return 0 for posix implementation
authorFam Zheng <famz@redhat.com>
Thu, 4 Jun 2015 06:45:23 +0000 (14:45 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 12 Jun 2015 12:26:21 +0000 (13:26 +0100)
qemu_set_fd_handler cannot fail, let's always return 0.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1433400324-7358-13-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/event_notifier-posix.c

index 8442c6e63c517d1e0a36201cde009e5bed142a48..ed4ca2b01e8fc6fb76cbcb30b87a856e6c997d02 100644 (file)
@@ -85,7 +85,8 @@ int event_notifier_get_fd(EventNotifier *e)
 int event_notifier_set_handler(EventNotifier *e,
                                EventNotifierHandler *handler)
 {
-    return qemu_set_fd_handler(e->rfd, (IOHandler *)handler, NULL, e);
+    qemu_set_fd_handler(e->rfd, (IOHandler *)handler, NULL, e);
+    return 0;
 }
 
 int event_notifier_set(EventNotifier *e)