diff options
author | 2024-12-31 13:58:56 +0100 | |
---|---|---|
committer | 2024-12-31 14:03:41 +0100 | |
commit | ead0db14c7266c34b1f8a6db6e15e2f4100a9e9e (patch) | |
tree | df5f869e2aba9e5d12f718d6efe417cc5cf3e758 | |
parent | x86/microcode/AMD: Have __apply_microcode_amd() return bool (diff) | |
download | wireguard-linux-ead0db14c7266c34b1f8a6db6e15e2f4100a9e9e.tar.xz wireguard-linux-ead0db14c7266c34b1f8a6db6e15e2f4100a9e9e.zip |
x86/microcode/AMD: Remove ret local var in early_apply_microcode()
No functional changes.
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kernel/cpu/microcode/amd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index ac3fd07e36ac..a5dac7f3c0a0 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -528,13 +528,12 @@ static bool early_apply_microcode(u32 old_rev, void *ucode, size_t size) { struct cont_desc desc = { 0 }; struct microcode_amd *mc; - bool ret = false; scan_containers(ucode, size, &desc); mc = desc.mc; if (!mc) - return ret; + return false; /* * Allow application of the same revision to pick up SMT-specific @@ -542,7 +541,7 @@ static bool early_apply_microcode(u32 old_rev, void *ucode, size_t size) * up-to-date. */ if (old_rev > mc->hdr.patch_id) - return ret; + return false; return __apply_microcode_amd(mc, desc.psize); } |