Re: [patch V3 19/30] x86/microcode: Clarify the late load logic

From: Borislav Petkov
Date: Fri Sep 22 2023 - 11:59:48 EST


On Tue, Sep 12, 2023 at 09:58:13AM +0200, Thomas Gleixner wrote:
> + ret = microcode_ops->request_microcode_fw(0, &microcode_pdev->dev);
> + if (ret != UCODE_NEW)
> + return ret == UCODE_NFOUND ? -ENOENT : -EBADFD;

I know this is short but let's make it more boring and readable pls:

if (ret != UCODE_NEW) {
if (ret == UCODE_NFOUND)
return -ENOENT;
else
return -EBADFD;
}

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette