[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-43858f57bc02388a6420321c021397591199cf91@git.kernel.org>
Date: Tue, 9 Feb 2016 04:21:33 -0800
From: tip-bot for Dan Carpenter <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tglx@...utronix.de, dan.carpenter@...cle.com, hpa@...or.com,
bp@...e.de, paul.gortmaker@...driver.com,
torvalds@...ux-foundation.org, mingo@...nel.org, tv@...96.de,
linux-kernel@...r.kernel.org, peterz@...radead.org
Subject: [tip:x86/microcode] x86/microcode: Remove an unneeded NULL check
Commit-ID: 43858f57bc02388a6420321c021397591199cf91
Gitweb: http://git.kernel.org/tip/43858f57bc02388a6420321c021397591199cf91
Author: Dan Carpenter <dan.carpenter@...cle.com>
AuthorDate: Wed, 3 Feb 2016 12:33:32 +0100
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Tue, 9 Feb 2016 11:41:16 +0100
x86/microcode: Remove an unneeded NULL check
"uci" is an element of the ucode_cpu_info[] array, it can't be NULL.
Tested-by: Thomas Voegtle <tv@...96.de>
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Paul Gortmaker <paul.gortmaker@...driver.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: kernel-janitors@...r.kernel.org
Link: http://lkml.kernel.org/r/1454499225-21544-5-git-send-email-bp@alien8.de
Link: http://lkml.kernel.org/r/20140120103046.GC14233@elgon.mountain
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/x86/kernel/cpu/microcode/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c
index bca4e48..cea8552 100644
--- a/arch/x86/kernel/cpu/microcode/core.c
+++ b/arch/x86/kernel/cpu/microcode/core.c
@@ -472,7 +472,7 @@ static enum ucode_state microcode_init_cpu(int cpu, bool refresh_fw)
enum ucode_state ustate;
struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
- if (uci && uci->valid)
+ if (uci->valid)
return UCODE_OK;
if (collect_cpu_info(cpu))
Powered by blists - more mailing lists