Skip to contentSkip to conversation

x86/microcode/amd: remove unneeded break

PATCH Applied [email protected] 2 participants 2 messages Oct 19, 2020 – Oct 26, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/microcode/amd: remove unneeded break

From: Tom Rix <[email protected]>

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

---
 arch/x86/kernel/cpu/microcode/amd.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/microcode/amd.c +0 -1
index 3f6b137ef4e6..3d4a48336084 100644
@@ -215,7 +215,6 @@ static unsigned int __verify_patch_size(u8 family, u32 sh_psize, size_t buf_size
 	default:
 		WARN(1, "%s: WTF family: 0x%x\n", __func__, family);
 		return 0;
-		break;
 	}
 
 	if (sh_psize > min_t(u32, buf_size, max_size))
Signature · 1 line
2.18.1
merge bot Applied
#1 lore raw

[tip: x86/microcode] x86/microcode/amd: Remove unneeded break

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

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

Commit-ID:     880396c86a1f3663c22b74fef34353f05a1263ec
Gitweb:        https://git.kernel.org/tip/880396c86a1f3663c22b74fef34353f05a1263ec
Author:        Tom Rix <[email protected]>
AuthorDate:    Mon, 19 Oct 2020 13:06:29 -07:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Mon, 26 Oct 2020 12:18:22 +01:00

x86/microcode/amd: Remove unneeded break

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

---
 arch/x86/kernel/cpu/microcode/amd.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/microcode/amd.c +0 -1
index 3f6b137..3d4a483 100644
@@ -215,7 +215,6 @@ static unsigned int __verify_patch_size(u8 family, u32 sh_psize, size_t buf_size
 	default:
 		WARN(1, "%s: WTF family: 0x%x\n", __func__, family);
 		return 0;
-		break;
 	}
 
 	if (sh_psize > min_t(u32, buf_size, max_size))