x86/microcode/amd: remove unneeded break
Subsystems (2)
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
Signed-off-by Tom Rix <[email protected]>
--- arch/x86/kernel/cpu/microcode/amd.c | 1 - 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/microcode/amd.c +0 -1
@@ -215,7 +215,6 @@ static unsigned int __verify_patch_size(u8 family, u32 sh_psize, size_t buf_sizedefault :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
[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.
Signed-off-by Tom Rix <[email protected]>
Signed-off-by Borislav Petkov <[email protected]>
--- arch/x86/kernel/cpu/microcode/amd.c | 1 - 1 file changed, 1 deletion(-)
arch/x86/kernel/cpu/microcode/amd.c +0 -1
@@ -215,7 +215,6 @@ static unsigned int __verify_patch_size(u8 family, u32 sh_psize, size_t buf_sizedefault :WARN (1 ,"%s: WTF family: 0x%x\n" , __func__, family);return 0 ; -break ; }if (sh_psize >min_t (u32, buf_size, max_size))