Commit cf8178f7 authored by Colin Ian King's avatar Colin Ian King Committed by Thomas Gleixner
Browse files

x86/microcode/AMD: Remove redundant NULL check on mc

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: default avatarColin Ian King <>
Cc: x86-ml <>

Signed-off-by: default avatarBorislav Petkov <>
Signed-off-by: default avatarThomas Gleixner <>
parent 8841b5f0
......@@ -352,8 +352,6 @@ void reload_ucode_amd(void)
u32 rev, dummy;
mc = (struct microcode_amd *)amd_ucode_patch;
if (!mc)
rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment