From patchwork Mon Apr 18 09:19:32 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: 611629 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qpNCg0nnHz9t3f for ; Mon, 18 Apr 2016 19:30:07 +1000 (AEST) Received: from localhost ([::1]:33896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as5VM-0008LT-SG for incoming@patchwork.ozlabs.org; Mon, 18 Apr 2016 05:30:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as5Ty-00054Y-NO for qemu-devel@nongnu.org; Mon, 18 Apr 2016 05:28:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1as5Tt-0000C3-Dz for qemu-devel@nongnu.org; Mon, 18 Apr 2016 05:28:38 -0400 Received: from mga03.intel.com ([134.134.136.65]:15011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as5Tt-0000Bx-7n for qemu-devel@nongnu.org; Mon, 18 Apr 2016 05:28:33 -0400 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 18 Apr 2016 02:28:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,501,1455004800"; d="scan'208";a="787038655" Received: from ll.sh.intel.com (HELO localhost) ([10.239.13.27]) by orsmga003.jf.intel.com with ESMTP; 18 Apr 2016 02:28:30 -0700 From: Liang Li To: qemu-devel@nongnu.org Date: Mon, 18 Apr 2016 17:19:32 +0800 Message-Id: <1460971172-2240-1-git-send-email-liang.z.li@intel.com> X-Mailer: git-send-email 1.9.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.65 Subject: [Qemu-devel] [PATCH] 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 --- migration/ram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index 3f05738..31d40f4 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -2322,7 +2322,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