amd-k8-mce: remove a stray break statement
PATCH 1/1 amd-k8-mce: remove a stray break statement
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?
xen/arch/x86/cpu/mcheck/amd_k8.c +0 -1
@@ -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 ; } }
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?
xen/arch/x86/cpu/mcheck/amd_k8.c +0 -1
@@ -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 ; } }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 2 lines · Jan Beulich
This was a leftover of converting from a switch to an if/else somewhere between 3.4 and 4.0.
So the patch is for 4.0-testing and unstable?
-- Keir
Quoted 23 lines
It also looks suspicious that
MCEQUIRK_K7_BANK0is not actually used anywhere. Perhapsamd_k7_mcheck_init()andamd_k8_mcheck_init()were intended to get (partially) folded?Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/cpu/mcheck/amd_k8.c +0
-1@@ -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 ; } }_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 2 lines · Jan Beulich
This was a leftover of converting from a switch to an if/else somewhere between 3.4 and 4.0.
So the patch is for 4.0-testing and unstable?
Yes, I tried to imply this with the above description.
Jan