Skip to contentSkip to conversation

x86/cpu/amd: Remove redundant break statements

PATCH Applied Baolin Liu 2 participants 2 messages Aug 9, 2023 – Sep 29, 2023 x86

lore
Share & tools
lore

Baolin Liu

author
#0 lore raw

PATCH 1/1 x86/cpu/amd: Remove redundant break statements

From: Baolin Liu <[email protected]>

This break is after the return statement, so it is redundant and should be deleted.

---
 arch/x86/kernel/cpu/amd.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/amd.c +0 -1
index 26ad7ca423e7..a2cd69d9c39d 100644
@@ -996,7 +996,6 @@ static bool cpu_has_zenbleed_microcode(void)
 
 	default:
 		return false;
-		break;
 	}
 
 	if (boot_cpu_data.microcode < good_rev)
Signature · 1 line
2.39.2
merge bot Applied
#1 lore raw

[tip: x86/cpu] x86/cpu/amd: Remove redundant 'break' statement

The following commit has been merged into the x86/cpu branch of tip:

The following commit has been merged into the x86/cpu branch of tip:

Commit-ID:     b5034c63858d8cb44587bb1ce5a0790a1b4e4a05
Gitweb:        https://git.kernel.org/tip/b5034c63858d8cb44587bb1ce5a0790a1b4e4a05
Author:        Baolin Liu <[email protected]>
AuthorDate:    Wed, 09 Aug 2023 16:09:11 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 29 Sep 2023 11:24:09 +02:00

x86/cpu/amd: Remove redundant 'break' statement

This break is after the return statement, so it is redundant & confusing, and should be deleted.

---
 arch/x86/kernel/cpu/amd.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/amd.c +0 -1
index 1011ce2..c3cb69e 100644
@@ -1001,7 +1001,6 @@ static bool cpu_has_zenbleed_microcode(void)
 
 	default:
 		return false;
-		break;
 	}
 
 	if (boot_cpu_data.microcode < good_rev)