Skip to content

Commit

Permalink
migration: remove "enable_colo" var
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xzpeter authored and Juan Quintela committed Jan 15, 2018
1 parent 0ceccd8 commit deb74fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions migration/migration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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__);
}
Expand Down

0 comments on commit deb74fb

Please sign in to comment.