migration: Remove duplicated assignment of SETUP status
authorJuan Quintela <quintela@redhat.com>
Wed, 20 May 2015 15:14:28 +0000 (17:14 +0200)
committerJuan Quintela <quintela@redhat.com>
Fri, 12 Jun 2015 04:42:34 +0000 (06:42 +0200)
We assign the MIGRATION_STATUS_SETUP status in two places.  Just in
succession.  Just remove the second one.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
migration/migration.c

index 732d229708f722a57533c35085a7a6ebcd55be79..5d77046a6947d0524544d5baedb3149aea0588b3 100644 (file)
@@ -838,9 +838,6 @@ static void *migration_thread(void *opaque)
 
 void migrate_fd_connect(MigrationState *s)
 {
-    s->state = MIGRATION_STATUS_SETUP;
-    trace_migrate_set_state(MIGRATION_STATUS_SETUP);
-
     /* This is a best 1st approximation. ns to ms */
     s->expected_downtime = max_downtime/1000000;
     s->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, s);