summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorFam Zheng2015-06-04 08:45:23 +0200
committerStefan Hajnoczi2015-06-12 14:26:21 +0200
commit1e354528bdaf9671ffc94e531e6967233abe7b8f (patch)
tree91ea8efeec272fd433a8b1615859ef21870470f6 /util
parentxen_backend: Remove unused error handling of qemu_set_fd_handler (diff)
downloadqemu-1e354528bdaf9671ffc94e531e6967233abe7b8f.tar.gz
qemu-1e354528bdaf9671ffc94e531e6967233abe7b8f.tar.xz
qemu-1e354528bdaf9671ffc94e531e6967233abe7b8f.zip
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>
Diffstat (limited to 'util')
-rw-r--r--util/event_notifier-posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c
index 8442c6e63c..ed4ca2b01e 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)