]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migration: Dead assignment of current_time
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 18 Nov 2015 11:48:40 +0000 (11:48 +0000)
committerJuan Quintela <quintela@redhat.com>
Thu, 19 Nov 2015 10:49:53 +0000 (11:49 +0100)
I set current_time before the postcopy test but never use it;
(I think this was from the original version where it was time based).
Spotted by coverity, CID 1339208

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c

index 7e4e27b57d4dcc54610b204ebd027c34d958bd91..265d13a74f8afb5533c762d621a668756f7ec3dd 100644 (file)
@@ -1643,7 +1643,6 @@ static void *migration_thread(void *opaque)
             if (pending_size && pending_size >= max_size) {
                 /* Still a significant amount to transfer */
 
-                current_time = qemu_clock_get_ms(QEMU_CLOCK_REALTIME);
                 if (migrate_postcopy_ram() &&
                     s->state != MIGRATION_STATUS_POSTCOPY_ACTIVE &&
                     pend_nonpost <= max_size &&