diff options
author | Laurent Vivier <lvivier@redhat.com> | 2018-03-23 15:32:02 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2018-05-20 08:48:13 +0300 |
commit | 4a4ff4c58fd750cde01c8b15d30d038cefc90a42 (patch) | |
tree | 663380d3786b808f7829236f2d085b437d4edb71 /tests/test-thread-pool.c | |
parent | f23c81073a4f9aa41a3687161f6ca3d66501a280 (diff) | |
download | qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.zip qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.gz qemu-4a4ff4c58fd750cde01c8b15d30d038cefc90a42.tar.bz2 |
Remove unnecessary variables for function return value
Re-run Coccinelle script scripts/coccinelle/return_directly.cocci
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
ppc part
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests/test-thread-pool.c')
-rw-r--r-- | tests/test-thread-pool.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test-thread-pool.c b/tests/test-thread-pool.c index 91b4ec5..9cdccb3 100644 --- a/tests/test-thread-pool.c +++ b/tests/test-thread-pool.c @@ -224,8 +224,6 @@ static void test_cancel_async(void) int main(int argc, char **argv) { - int ret; - qemu_init_main_loop(&error_abort); ctx = qemu_get_current_aio_context(); pool = aio_get_thread_pool(ctx); @@ -238,7 +236,5 @@ int main(int argc, char **argv) g_test_add_func("/thread-pool/cancel", test_cancel); g_test_add_func("/thread-pool/cancel-async", test_cancel_async); - ret = g_test_run(); - - return ret; + return g_test_run(); } |