Files
xemu/tests
Markus Armbruster 73eaa04777 test-throttle: Simplify qemu_init_main_loop() error handling
The code looks like it tries to check for both qemu_init_main_loop()
and qemu_get_aio_context() failure in one conditional.  In fact,
qemu_get_aio_context() can fail only after qemu_init_main_loop()
failed.

Simplify accordingly: check for qemu_init_main_loop() error directly,
without bothering to improve its error message.  Call
qemu_get_aio_context() only when qemu_get_aio_context() succeeded.  It
can't fail then, so no need to check.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1450452927-8346-9-git-send-email-armbru@redhat.com>
2016-01-13 15:16:17 +01:00
..
2015-09-11 10:45:43 +03:00
2016-01-11 14:10:44 -05:00
2015-12-17 08:21:29 +01:00
2016-01-11 14:10:43 -05:00
2015-10-09 15:25:57 +02:00
2015-10-16 11:14:53 +01:00
2015-10-23 18:18:23 +02:00
2015-10-19 15:26:53 +02:00
2015-12-22 18:39:19 +02:00
2015-12-22 18:39:19 +02:00
2015-12-22 18:39:19 +02:00
2015-06-05 19:45:09 +02:00
2015-12-04 18:29:31 +01:00
2015-09-25 14:53:29 +02:00
2015-12-17 08:21:27 +01:00
2015-11-02 08:30:26 +01:00