diff options
author | Fam Zheng <famz@redhat.com> | 2015-06-04 14:45:23 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-06-12 13:26:21 +0100 |
commit | 1e354528bdaf9671ffc94e531e6967233abe7b8f (patch) | |
tree | 91ea8efeec272fd433a8b1615859ef21870470f6 | |
parent | 6b5166f8a82888638bb9aba9dc49aa7fa25f292f (diff) | |
download | qemu-1e354528bdaf9671ffc94e531e6967233abe7b8f.zip qemu-1e354528bdaf9671ffc94e531e6967233abe7b8f.tar.gz qemu-1e354528bdaf9671ffc94e531e6967233abe7b8f.tar.bz2 |
event-notifier: Always return 0 for posix implementation
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>
-rw-r--r-- | util/event_notifier-posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c index 8442c6e..ed4ca2b 100644 --- a/util/event_notifier-posix.c +++ b/util/event_notifier-posix.c @@ -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) |