From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzNHA-0003An-4g for qemu-devel@nongnu.org; Thu, 19 Nov 2015 06:21:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzNH9-00076X-6m for qemu-devel@nongnu.org; Thu, 19 Nov 2015 06:21:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzNH9-00076T-1G for qemu-devel@nongnu.org; Thu, 19 Nov 2015 06:21:15 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 9D3C9935F0 for ; Thu, 19 Nov 2015 11:21:14 +0000 (UTC) From: Juan Quintela Date: Thu, 19 Nov 2015 12:20:57 +0100 Message-Id: <1447932069-2772-3-git-send-email-quintela@redhat.com> In-Reply-To: <1447932069-2772-1-git-send-email-quintela@redhat.com> References: <1447932069-2772-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PULL 02/14] migration: Dead assignment of current_time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, dgilbert@redhat.com From: "Dr. David Alan Gilbert" I set current_time before the postcopy test but never use it; (I think this was from the original version where it was time based). Spotted by coverity, CID 1339208 Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Juan Quintela --- migration/migration.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/migration.c b/migration/migration.c index 7e4e27b..265d13a 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1643,7 +1643,6 @@ static void *migration_thread(void *opaque) if (pending_size && pending_size >= max_size) { /* Still a significant amount to transfer */ - current_time = qemu_clock_get_ms(QEMU_CLOCK_REALTIME); if (migrate_postcopy_ram() && s->state != MIGRATION_STATUS_POSTCOPY_ACTIVE && pend_nonpost <= max_size && -- 2.5.0