x86/microcode/AMD: Remove redundant NULL check on mc
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Mar 2017 17:10:10 +0000 (17:10 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 18 Mar 2017 11:31:58 +0000 (12:31 +0100)
commitcf8178f78645148dc38b28263b9d3f604148e3a8
treec031b2732062c07e5883b534a30bc4abfb868592
parent8841b5f0cdc71a0b8e42ef93d6eee9a081c67309
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: Colin Ian King <colin.king@canonical.com>
Cc: kernel-janitors@vger.kernel.org
Cc: x86-ml <x86@kernel.org>
Link: http://lkml.kernel.org/r/20170315171010.17536-1-colin.king@canonical.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/microcode/amd.c