Received: from eggs.gnu.org ([2001:4830:134:3::10]:55543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv6FD-0002Be-IG for qemu-devel@nongnu.org; Wed, 20 May 2015 11:49:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv6FC-0008W4-K5 for qemu-devel@nongnu.org; Wed, 20 May 2015 11:49:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv6FC-0008Ve-DA for qemu-devel@nongnu.org; Wed, 20 May 2015 11:49:18 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4KFnGWA022214 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 20 May 2015 11:49:17 -0400 From: Juan Quintela Date: Wed, 20 May 2015 17:35:22 +0200 Message-Id: <1432136124-24572-2-git-send-email-quintela@redhat.com> In-Reply-To: <1432136124-24572-1-git-send-email-quintela@redhat.com> References: <1432136124-24572-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] migration: Remove duplicated assignement of SETUP status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, jdenemar@redhat.com We assign the MIGRATION_STATUS_SETUP status in two places. Just in sucession. Just remove the second one. Signed-off-by: Juan Quintela --- migration/migration.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 1035689..2925587 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -849,9 +849,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); -- 2.4.1