summary refs log tree commit diff stats
path: root/util/main-loop.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-20 18:18:06 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2024-01-08 10:45:34 -0500
commit897a06c6d7ce8fb962a33cea1910d17218c746e9 (patch)
treea9917e4fe7b6d717d125067ee4d22663b8a6a9ec /util/main-loop.c
parentffd454c67e38cc6df792733ebc5d967eee28ac0d (diff)
downloadfocaccia-qemu-897a06c6d7ce8fb962a33cea1910d17218c746e9.tar.gz
focaccia-qemu-897a06c6d7ce8fb962a33cea1910d17218c746e9.zip
iothread: Remove unused Error** argument in aio_context_set_aio_params
aio_context_set_aio_params() doesn't use its undocumented
Error** argument. Remove it to simplify.

Note this removes a use of "unchecked Error**" in
iothread_set_aio_context_params().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20231120171806.19361-1-philmd@linaro.org>
Diffstat (limited to 'util/main-loop.c')
-rw-r--r--util/main-loop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/util/main-loop.c b/util/main-loop.c
index 797b640c41..63b4cda84a 100644
--- a/util/main-loop.c
+++ b/util/main-loop.c
@@ -192,10 +192,7 @@ static void main_loop_update_params(EventLoopBase *base, Error **errp)
         return;
     }
 
-    aio_context_set_aio_params(qemu_aio_context, base->aio_max_batch, errp);
-    if (*errp) {
-        return;
-    }
+    aio_context_set_aio_params(qemu_aio_context, base->aio_max_batch);
 
     aio_context_set_thread_pool_params(qemu_aio_context, base->thread_pool_min,
                                        base->thread_pool_max, errp);