From patchwork Wed May 4 03:40:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Liang Z" X-Patchwork-Id: 618230 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r03mZ0LCZz9t66 for ; Wed, 4 May 2016 13:43:42 +1000 (AEST) Received: from localhost ([::1]:45566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axniq-0004JJ-2Q for incoming@patchwork.ozlabs.org; Tue, 03 May 2016 23:43:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axngz-0000jP-U7 for qemu-devel@nongnu.org; Tue, 03 May 2016 23:41:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axngo-0002gy-Db for qemu-devel@nongnu.org; Tue, 03 May 2016 23:41:36 -0400 Received: from mga04.intel.com ([192.55.52.120]:16593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axngo-0002cI-8v for qemu-devel@nongnu.org; Tue, 03 May 2016 23:41:30 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP; 03 May 2016 20:41:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,574,1455004800"; d="scan'208";a="958382603" Received: from ll.sh.intel.com (HELO localhost) ([10.239.13.27]) by fmsmga001.fm.intel.com with ESMTP; 03 May 2016 20:41:05 -0700 From: Liang Li To: qemu-devel@nongnu.org Date: Wed, 4 May 2016 11:40:57 +0800 Message-Id: <1462333259-3237-4-git-send-email-liang.z.li@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462333259-3237-1-git-send-email-liang.z.li@intel.com> References: <1462333259-3237-1-git-send-email-liang.z.li@intel.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.120 Subject: [Qemu-devel] [PATCH 3/5] migration: remove useless code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: amit.shah@redhat.com, Liang Li , dgilbert@redhat.com, quintela@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" page_buffer is set twice repeatedly, remove the previous set. Signed-off-by: Liang Li Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela --- migration/ram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index 4459b38..bc34bc5 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -2358,7 +2358,6 @@ static int ram_load_postcopy(QEMUFile *f) ret = -EINVAL; break; } - page_buffer = host; /* * Postcopy requires that we place whole host pages atomically. * To make it atomic, the data is read into a temporary page