From: "Jan Beulich" Subject: [PATCH] amd-k8-mce: remove a stray break statement Date: Wed, 23 Feb 2011 11:24:33 +0000 Message-ID: <4D64FC8102000078000334AF@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartCEE2EA61.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartCEE2EA61.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This was a leftover of converting from a switch to an if/else somewhere between 3.4 and 4.0. It also looks suspicious that MCEQUIRK_K7_BANK0 is not actually used anywhere. Perhaps amd_k7_mcheck_init() and amd_k8_mcheck_init() were intended to get (partially) folded? Signed-off-by: Jan Beulich --- a/xen/arch/x86/cpu/mcheck/amd_k8.c +++ b/xen/arch/x86/cpu/mcheck/amd_k8.c @@ -92,7 +92,6 @@ enum mcheck_type amd_k8_mcheck_init(stru /* Enable error reporting of all errors */ wrmsrl(MSR_IA32_MCx_CTL(i), 0xffffffffffffffffULL);= wrmsrl(MSR_IA32_MCx_STATUS(i), 0x0ULL); - break; } } =20 --=__PartCEE2EA61.0__= Content-Type: text/plain; name="amd-k8-mcheck-init-quirk.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="amd-k8-mcheck-init-quirk.patch" This was a leftover of converting from a switch to an if/else somewhere=0Ab= etween 3.4 and 4.0.=0A=0AIt also looks suspicious that MCEQUIRK_K7_BANK0 = is not actually used=0Aanywhere. Perhaps amd_k7_mcheck_init() and = amd_k8_mcheck_init() were=0Aintended to get (partially) folded?=0A=0ASigned= -off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/cpu/mche= ck/amd_k8.c=0A+++ b/xen/arch/x86/cpu/mcheck/amd_k8.c=0A@@ -92,7 +92,6 @@ = enum mcheck_type amd_k8_mcheck_init(stru=0A /* Enable = error reporting of all errors */=0A wrmsrl(MSR_IA32_MCx= _CTL(i), 0xffffffffffffffffULL);=0A wrmsrl(MSR_IA32_MCx= _STATUS(i), 0x0ULL);=0A- break;=0A = }=0A }=0A =0A --=__PartCEE2EA61.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartCEE2EA61.0__=--