[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH v2 11/13] xen_backend: Remove unused error handl
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [RFC PATCH v2 11/13] xen_backend: Remove unused error handling of qemu_set_fd_handler |
Date: |
Thu, 14 May 2015 11:34:27 +0800 |
The function cannot fail, so the check is superfluous.
Signed-off-by: Fam Zheng <address@hidden>
---
hw/xen/xen_backend.c | 4 +---
1 file changed, 1 insertion(+), 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 */
--
2.4.0
- [Qemu-devel] [RFC PATCH v2 00/13] main-loop: Get rid of fd_read_poll and qemu_set_fd_handler2, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 01/13] stubs: Add qemu_set_fd_handler, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 02/13] qemu-nbd: Switch to qemu_set_fd_handler, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 03/13] l2tpv3: Drop l2tpv3_can_send, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 04/13] netmap: Drop netmap_can_send, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 05/13] net/socket: Drop net_socket_can_send, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 06/13] tap: Drop tap_can_send, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 07/13] Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 08/13] main-loop: Drop qemu_set_fd_handler2, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 09/13] alsaaudio: Remove unused error handling of qemu_set_fd_handler, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 11/13] xen_backend: Remove unused error handling of qemu_set_fd_handler,
Fam Zheng <=
- [Qemu-devel] [RFC PATCH v2 10/13] oss: Remove unused error handling of qemu_set_fd_handler, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 12/13] event-notifier: Always return 0 for posix implementation, Fam Zheng, 2015/05/13
- [Qemu-devel] [RFC PATCH v2 13/13] iohandler: Use AioContext internally, Fam Zheng, 2015/05/13
- Re: [Qemu-devel] [RFC PATCH v2 00/13] main-loop: Get rid of fd_read_poll and qemu_set_fd_handler2, Fam Zheng, 2015/05/14