Skip to content

Commit ead0db1

Browse files
committed
x86/microcode/AMD: Remove ret local var in early_apply_microcode()
No functional changes. Signed-off-by: Borislav Petkov (AMD) <[email protected]>
1 parent 78e0aad commit ead0db1

File tree

1 file changed

+2
-3
lines changed
  • arch/x86/kernel/cpu/microcode

1 file changed

+2
-3
lines changed

arch/x86/kernel/cpu/microcode/amd.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,21 +528,20 @@ static bool early_apply_microcode(u32 old_rev, void *ucode, size_t size)
528528
{
529529
struct cont_desc desc = { 0 };
530530
struct microcode_amd *mc;
531-
bool ret = false;
532531

533532
scan_containers(ucode, size, &desc);
534533

535534
mc = desc.mc;
536535
if (!mc)
537-
return ret;
536+
return false;
538537

539538
/*
540539
* Allow application of the same revision to pick up SMT-specific
541540
* changes even if the revision of the other SMT thread is already
542541
* up-to-date.
543542
*/
544543
if (old_rev > mc->hdr.patch_id)
545-
return ret;
544+
return false;
546545

547546
return __apply_microcode_amd(mc, desc.psize);
548547
}

0 commit comments

Comments
 (0)