aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-18 11:48:40 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-19 11:49:53 +0100
commit95a7788b2faa81ff95675f1e46a3272a612b35de (patch)
tree76ab03e82629532a45a7eb67a3636e7fa0836ca6 /migration
parent84e7b80a05c0c44b90533c6cd2f1db5c932ccf77 (diff)
migration: Dead assignment of current_time
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>
Diffstat (limited to 'migration')
-rw-r--r--migration/migration.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 7e4e27b57d..265d13a74f 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -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 &&