]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
migration: remove "enable_colo" var
authorPeter Xu <peterx@redhat.com>
Wed, 3 Jan 2018 12:20:07 +0000 (20:20 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jan 2018 11:48:07 +0000 (12:48 +0100)
It's only used once, clean it up a bit.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c

index 02d8bc07b1243b19b8413677aef6b1373f53de3b..0b513c2020d0f402ceadbed60f33ea4a1a90f5df 100644 (file)
@@ -2216,7 +2216,6 @@ static void *migration_thread(void *opaque)
     bool entered_postcopy = false;
     /* The active state we expect to be in; ACTIVE or POSTCOPY_ACTIVE */
     enum MigrationStatus current_active_state = MIGRATION_STATUS_ACTIVE;
-    bool enable_colo = migrate_colo_enabled();
 
     rcu_register_thread();
 
@@ -2348,7 +2347,7 @@ static void *migration_thread(void *opaque)
              * We should really assert here, but since it's during
              * migration, let's try to reduce the usage of assertions.
              */
-            if (!enable_colo) {
+            if (!migrate_colo_enabled()) {
                 error_report("%s: critical error: calling COLO code without "
                              "COLO enabled", __func__);
             }