linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/mce: remove unneeded break
@ 2020-10-19 20:08 trix
  2020-10-26 11:38 ` [tip: ras/core] x86/mce: Remove " tip-bot2 for Tom Rix
  0 siblings, 1 reply; 2+ messages in thread
From: trix @ 2020-10-19 20:08 UTC (permalink / raw)
  To: tony.luck, bp, tglx, mingo, hpa; +Cc: x86, linux-edac, linux-kernel, Tom Rix

From: Tom Rix <trix@redhat.com>

A break is not needed if it is preceded by a return

Signed-off-by: Tom Rix <trix@redhat.com>
---
 arch/x86/kernel/cpu/mce/core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c
index 1c08cb9eb9f6..16ce86aed8e2 100644
--- 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;
 	}
-- 
2.18.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip: ras/core] x86/mce: Remove unneeded break
  2020-10-19 20:08 [PATCH] x86/mce: remove unneeded break trix
@ 2020-10-26 11:38 ` tip-bot2 for Tom Rix
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Tom Rix @ 2020-10-26 11:38 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Tom Rix, Borislav Petkov, x86, LKML

The following commit has been merged into the ras/core branch of tip:

Commit-ID:     633cdaf29ec4aae29868320adb3a4f1c5b8c0eac
Gitweb:        https://git.kernel.org/tip/633cdaf29ec4aae29868320adb3a4f1c5b8c0eac
Author:        Tom Rix <trix@redhat.com>
AuthorDate:    Mon, 19 Oct 2020 13:08:03 -07:00
Committer:     Borislav Petkov <bp@suse.de>
CommitterDate: Mon, 26 Oct 2020 12:24:35 +01:00

x86/mce: Remove unneeded break

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 | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c
index 4102b86..51bf910 100644
--- 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;
 	}

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-26 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 20:08 [PATCH] x86/mce: remove unneeded break trix
2020-10-26 11:38 ` [tip: ras/core] x86/mce: Remove " tip-bot2 for Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).