From 1943c11a62bd0741e5d9fbba78404fe47ebea820 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 22 Nov 2021 10:58:01 +0100 Subject: multifd: The variable is only used inside the loop Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/multifd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'migration/multifd.c') 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, -- cgit v1.1