From patchwork Fri Feb 17 06:39:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haozhong Zhang X-Patchwork-Id: 9578875 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 3CC1C600C5 for ; Fri, 17 Feb 2017 06:43:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D9F32869B for ; Fri, 17 Feb 2017 06:43:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22A71286A4; Fri, 17 Feb 2017 06:43:16 +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 CA6DE2869B for ; Fri, 17 Feb 2017 06:43:15 +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 1cecDi-0002M7-Cx; Fri, 17 Feb 2017 06:40:42 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cecDh-0002L9-Jh for xen-devel@lists.xen.org; Fri, 17 Feb 2017 06:40:41 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id CB/77-31242-9EA96A85; Fri, 17 Feb 2017 06:40:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRWlGSWpSXmKPExsVywNykWPfFrGU RBieuS1ks+biYxYHR4+ju30wBjFGsmXlJ+RUJrBnXv51kKzjEUbF53UaWBsapbF2MXBxCAtMY JXas/wbkcHJICPBKHFk2g7WLkQPI9pPY3G0KUdPLKPFu1jWwGjYBfYkVjw+ygtgiAtIS1z5fZ gQpYhY4yyix5G4DE0hCWCBK4t31t2wgg1gEVCXmLhMECfMK2Ep8PtkAtUte4sLVUywgNqeAnc Sfhx/YQWwhoJr3n+4xT2DkXcDIsIpRvTi1qCy1SNdEL6koMz2jJDcxM0fX0MBMLze1uDgxPTU nMalYLzk/dxMjMBgYgGAHY/dl/0OMkhxMSqK8i6YtixDiS8pPqcxILM6ILyrNSS0+xCjDwaEk wcsNDC4hwaLU9NSKtMwcYFjCpCU4eJREeDlA0rzFBYm5xZnpEKlTjIpS4rw3ZgIlBEASGaV5c G2wWLjEKCslzMsIdIgQT0FqUW5mCar8K0ZxDkYlYd4LIFN4MvNK4Ka/AlrMBLS4M2IpyOKSRI SUVAPjdO07r0/d+rm/7gl/q/XkUq5N2c4TPdqeBQhLL3AP6zqvN6Pg4wevaXx+3P4RMQcVZ2d d/rdLNO12X5awbm7oJfn695enq6nN/xV/WVDfZ6mT8OmUzv9bNK1WNVzzqNgq7BKfHWmV7/ZQ Uql66ZxTj6/9CH6ms0Xhn3pm1fNdU1Z99niX0L5JiaU4I9FQi7moOBEAYh6VcIACAAA= X-Env-Sender: haozhong.zhang@intel.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1487313633!34675007!3 X-Originating-IP: [192.55.52.115] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 32662 invoked from network); 17 Feb 2017 06:40:40 -0000 Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 17 Feb 2017 06:40:40 -0000 Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Feb 2017 22:40:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,171,1484035200"; d="scan'208";a="65781490" Received: from hz-desktop.sh.intel.com (HELO localhost) ([10.239.159.133]) by orsmga005.jf.intel.com with ESMTP; 16 Feb 2017 22:40:38 -0800 From: Haozhong Zhang To: xen-devel@lists.xen.org Date: Fri, 17 Feb 2017 14:39:20 +0800 Message-Id: <20170217063936.13208-4-haozhong.zhang@intel.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170217063936.13208-1-haozhong.zhang@intel.com> References: <20170217063936.13208-1-haozhong.zhang@intel.com> Cc: Haozhong Zhang , Christoph Egger , Andrew Cooper , Jan Beulich , Liu Jinsong Subject: [Xen-devel] [PATCH 03/19] x86/mce: remove unnecessary braces around intel_get_extended_msrs() 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Haozhong Zhang Acked-by: Jan Beulich --- Cc: Christoph Egger Cc: Liu Jinsong Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/cpu/mcheck/mce.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/cpu/mcheck/mce.c b/xen/arch/x86/cpu/mcheck/mce.c index 2695b0c..e327eab 100644 --- a/xen/arch/x86/cpu/mcheck/mce.c +++ b/xen/arch/x86/cpu/mcheck/mce.c @@ -356,11 +356,8 @@ mcheck_mca_logout(enum mca_source who, struct mca_banks *bankmask, ASSERT(mig); mca_init_global(mc_flags, mig); /* A hook here to get global extended msrs */ - { - if (boot_cpu_data.x86_vendor == - X86_VENDOR_INTEL) - intel_get_extended_msrs(mig, mci); - } + if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) + intel_get_extended_msrs(mig, mci); } }