Skip to contentSkip to conversation

amd-k8-mce: remove a stray break statement

PATCH In review Jan Beulich 2 participants 3 messages Feb 23, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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_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

#2 lore raw
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