Re: [PATCH] x86/microcode/AMD: remove redundant null check on mc

From: Borislav Petkov
Date: Sat Mar 18 2017 - 05:35:17 EST


On Wed, Mar 15, 2017 at 05:10:10PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> mc is a pointer to the static u8 array amd_ucode_patch and
> therefore can never be null, so the check is redundant. Remove it.
>
> Detected by CoverityScan, CID#1372871 ("Logically Dead Code")
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> ---
> arch/x86/kernel/cpu/microcode/amd.c | 3 ---
> 1 file changed, 3 deletions(-)

Applied, thanks.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.