aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Harivel <aharivel@redhat.com>2024-07-26 12:26:31 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-07-31 13:13:31 +0200
commit5997fbdfaca3e69062c2b706d6228c7c6e133c03 (patch)
tree0ae18f2582e22677455f6f6483085092b2556745
parentada1f3cab32a4eded6a453c2e22fc897009da555 (diff)
downloadqemu-5997fbdfaca3e69062c2b706d6228c7c6e133c03.zip
qemu-5997fbdfaca3e69062c2b706d6228c7c6e133c03.tar.gz
qemu-5997fbdfaca3e69062c2b706d6228c7c6e133c03.tar.bz2
target/i386: Fix typo that assign same value twice
Should fix: CID 1558553 Signed-off-by: Anthony Harivel <aharivel@redhat.com> Link: https://lore.kernel.org/r/20240726102632.1324432-2-aharivel@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--target/i386/kvm/kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index b4aab9a..31f149c 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -2694,8 +2694,8 @@ static void *kvm_msr_energy_thread(void *data)
while (true) {
/* Get all qemu threads id */
- g_autofree pid_t *thread_ids =
- thread_ids = vmsr_get_thread_ids(vmsr->pid, &num_threads);
+ g_autofree pid_t *thread_ids
+ = vmsr_get_thread_ids(vmsr->pid, &num_threads);
if (thread_ids == NULL) {
goto clean;