projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c8165
)
x86/microcode: Remove an unneeded NULL check
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 3 Feb 2016 11:33:32 +0000
(12:33 +0100)
committer
Ingo Molnar
<mingo@kernel.org>
Tue, 9 Feb 2016 10:41:16 +0000
(11:41 +0100)
"uci" is an element of the ucode_cpu_info[] array, it can't be NULL.
Tested-by: Thomas Voegtle <tv@lio96.de>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.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@kernel.org>
arch/x86/kernel/cpu/microcode/core.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/cpu/microcode/core.c
b/arch/x86/kernel/cpu/microcode/core.c
index bca4e48b531d87c6b91dbcc6e73af96dbec5adc8..cea8552e2b3abf2ec2040379886c5e33ec19b32f 100644
(file)
--- 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))