From patchwork Tue Aug 15 10:21:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9901557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B5E3460230 for ; Tue, 15 Aug 2017 10:23:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6F5928802 for ; Tue, 15 Aug 2017 10:23:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BAAB2882F; Tue, 15 Aug 2017 10:23:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 31EDA28802 for ; Tue, 15 Aug 2017 10:23:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhYyF-0004gp-LA; Tue, 15 Aug 2017 10:21:11 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhYyD-0004gh-U1 for xen-devel@lists.xenproject.org; Tue, 15 Aug 2017 10:21:10 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id F4/E1-02181-51BC2995; Tue, 15 Aug 2017 10:21:09 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRWlGSWpSXmKPExsXitHRDpK7w6Um RBg9fG1t83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBmXnsxhL1jNWvFr/TO2BsbvzF2MnBwSAv4S T9bfZAKx2QSUJX529rKB2CICehJNB54zgtjMAnkSZ1cvYu1i5OAQFnCSaF9qABJmEVCVeNTzl x3E5hWwkFj+sosdYqS8xK62i6wgtpCAgkTH9GNMEDWCEidnPmGBGCkhcfDFC+YJjNyzkKRmIU ktYGRaxahRnFpUllqka2ipl1SUmZ5RkpuYmaNraGCsl5taXJyYnpqTmFSsl5yfu4kRGAr1DAy MOxh/H/c7xCjJwaQkyjs/alKkEF9SfkplRmJxRnxRaU5q8SFGGQ4OJQneKyeBcoJFqempFWmZ OcCghElLcPAoifDynwJK8xYXJOYWZ6ZDpE4xGnM0fdjyhYnj1YT/35iEWPLy81KlxHk/gkwSA CnNKM2DGwSLlkuMslLCvIwMDAxCPAWpRbmZJajyrxjFORiVhHkFQBbyZOaVwO17BXQKE9ApV9 rBTilJREhJNTB2PJZ1WpFumHb4T5vS6gIF1Y5pJ6rT7ViUausuNFayaW7tzXnatefNRM0/c5g fs+/Jk3gTuSNL4JTlgp8ZprM+XmI49dP16QKb+kttbNX8rYdnG+zp1rGI8/W5EmY2cVYro7PR q1cfjLaET898u+29Ws7T8m8fOhsKTgdw2k2/u1str291PLMSS3FGoqEWc1FxIgD/wTtNkQIAA A== X-Env-Sender: prvs=3935433b3=wei.liu2@citrix.com X-Msg-Ref: server-10.tower-31.messagelabs.com!1502792466!109371438!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 44810 invoked from network); 15 Aug 2017 10:21:07 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-10.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 15 Aug 2017 10:21:07 -0000 X-IronPort-AV: E=Sophos;i="5.41,377,1498521600"; d="scan'208";a="435521463" From: Wei Liu To: Xen-devel Date: Tue, 15 Aug 2017 11:21:04 +0100 Message-ID: <20170815102104.10798-1-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: Andrew Cooper , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH] x86_64/mm: remove extraneous breaks in m2p_mapped X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Wei Liu Reviewed-by: Jan Beulich --- xen/arch/x86/x86_64/mm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/arch/x86/x86_64/mm.c b/xen/arch/x86/x86_64/mm.c index f74c673161..b375ee56e6 100644 --- a/xen/arch/x86/x86_64/mm.c +++ b/xen/arch/x86/x86_64/mm.c @@ -140,13 +140,11 @@ static int m2p_mapped(unsigned long spfn) { case _PAGE_PSE|_PAGE_PRESENT: return M2P_1G_MAPPED; - break; /* Check for next level */ case _PAGE_PRESENT: break; default: return M2P_NO_MAPPED; - break; } l2_ro_mpt = l3e_to_l2e(l3_ro_mpt[l3_table_offset(va)]);