diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-08-22 17:31:04 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-08-22 17:31:04 +0100 |
commit | 43a5e377f42d1d3ed12ea562196f723b354ce411 (patch) | |
tree | 34cec2fd104c757be7b60aaeb425ce0896e9c50d /accel | |
parent | 4625742cd2aeb1400407889a2f7a5b4c75437818 (diff) | |
download | qemu-43a5e377f42d1d3ed12ea562196f723b354ce411.zip qemu-43a5e377f42d1d3ed12ea562196f723b354ce411.tar.gz qemu-43a5e377f42d1d3ed12ea562196f723b354ce411.tar.bz2 |
accel/kvm: Make kvm_dirty_ring_reaper_init() void
The returned value was always zero and had no meaning.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-id: 20230727073134.134102-7-akihiko.odaki@daynix.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'accel')
-rw-r--r-- | accel/kvm/kvm-all.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index ed30f41..d07f1ec 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -1454,15 +1454,13 @@ static void *kvm_dirty_ring_reaper_thread(void *data) return NULL; } -static int kvm_dirty_ring_reaper_init(KVMState *s) +static void kvm_dirty_ring_reaper_init(KVMState *s) { struct KVMDirtyRingReaper *r = &s->reaper; qemu_thread_create(&r->reaper_thr, "kvm-reaper", kvm_dirty_ring_reaper_thread, s, QEMU_THREAD_JOINABLE); - - return 0; } static int kvm_dirty_ring_init(KVMState *s) @@ -2744,10 +2742,7 @@ static int kvm_init(MachineState *ms) } if (s->kvm_dirty_ring_size) { - ret = kvm_dirty_ring_reaper_init(s); - if (ret) { - goto err; - } + kvm_dirty_ring_reaper_init(s); } if (kvm_check_extension(kvm_state, KVM_CAP_BINARY_STATS_FD)) { |