projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3650b22
)
x86/mce: Remove unneeded break
author
Tom Rix
<trix@redhat.com>
Mon, 19 Oct 2020 20:08:03 +0000
(13:08 -0700)
committer
Borislav Petkov
<bp@suse.de>
Mon, 26 Oct 2020 11:24:35 +0000
(12:24 +0100)
A break is not needed if it is preceded by a return.
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
https://lkml.kernel.org/r/20201019200803.17619-1-trix@redhat.com
arch/x86/kernel/cpu/mce/core.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/mce/core.c
b/arch/x86/kernel/cpu/mce/core.c
index
4102b86
..
51bf910
100644
(file)
--- a/
arch/x86/kernel/cpu/mce/core.c
+++ b/
arch/x86/kernel/cpu/mce/core.c
@@
-1811,11
+1811,9
@@
static int __mcheck_cpu_ancient_init(struct cpuinfo_x86 *c)
case X86_VENDOR_INTEL:
intel_p5_mcheck_init(c);
return 1;
- break;
case X86_VENDOR_CENTAUR:
winchip_mcheck_init(c);
return 1;
- break;
default:
return 0;
}