aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2021-11-22 10:58:01 +0100
committerJuan Quintela <quintela@redhat.com>2021-12-15 10:31:42 +0100
commit1943c11a62bd0741e5d9fbba78404fe47ebea820 (patch)
tree315121fd0ea6e238dee914bc118d6b5566e96850
parent18ede636bc29fd8bda628fe3e5c593f8c1b734f4 (diff)
downloadqemu-1943c11a62bd0741e5d9fbba78404fe47ebea820.zip
qemu-1943c11a62bd0741e5d9fbba78404fe47ebea820.tar.gz
qemu-1943c11a62bd0741e5d9fbba78404fe47ebea820.tar.bz2
multifd: The variable is only used inside the loop
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r--migration/multifd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration/multifd.c b/migration/multifd.c
index cdeffdc..ce7101c 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -629,7 +629,6 @@ static void *multifd_send_thread(void *opaque)
MultiFDSendParams *p = opaque;
Error *local_err = NULL;
int ret = 0;
- uint32_t flags = 0;
trace_multifd_send_thread_start(p->id);
rcu_register_thread();
@@ -652,7 +651,7 @@ static void *multifd_send_thread(void *opaque)
if (p->pending_job) {
uint32_t used = p->pages->num;
uint64_t packet_num = p->packet_num;
- flags = p->flags;
+ uint32_t flags = p->flags;
if (used) {
ret = multifd_send_state->ops->send_prepare(p, used,