summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-06-04 14:45:22 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2015-06-12 13:26:21 +0100
commit6b5166f8a82888638bb9aba9dc49aa7fa25f292f (patch)
treeb10a6b778676732e9aae189ea5c0b03818c6dafe /hw
parentb027a538c6790bcfc93ef7f4819fe3e581445959 (diff)
downloadhqemu-6b5166f8a82888638bb9aba9dc49aa7fa25f292f.zip
hqemu-6b5166f8a82888638bb9aba9dc49aa7fa25f292f.tar.gz
xen_backend: Remove unused error handling of qemu_set_fd_handler
The function cannot fail, so the check is superfluous. Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1433400324-7358-12-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xen/xen_backend.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/xen/xen_backend.c b/hw/xen/xen_backend.c
index b2cb22b..2510e2e 100644
--- a/hw/xen/xen_backend.c
+++ b/hw/xen/xen_backend.c
@@ -714,9 +714,7 @@ int xen_be_init(void)
return -1;
}
- if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) {
- goto err;
- }
+ qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL);
if (xen_xc == XC_HANDLER_INITIAL_VALUE) {
/* Check if xen_init() have been called */
OpenPOWER on IntegriCloud