aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-01-03 20:20:07 +0800
committerJuan Quintela <quintela@redhat.com>2018-01-15 12:48:07 +0100
commitdeb74fb6701755a4f864977608ea3919e4970fae (patch)
treed4f332f89356ad33ddf8a0c2c8607cb5ab8b202f /migration/migration.c
parent0ceccd858a8d2d462109c2e0e0ca51861eebdd80 (diff)
migration: remove "enable_colo" var
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>
Diffstat (limited to 'migration/migration.c')
-rw-r--r--migration/migration.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 02d8bc07b1..0b513c2020 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -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__);
}