android_kernel_oneplus_msm8998/arch/x86/kernel/cpu/microcode
Gustavo A. R. Silva ff891875c1 x86/cpu: Change type of x86_cache_size variable to unsigned int
commit 24dbc6000f4b9b0ef5a9daecb161f1907733765a upstream.

Currently, x86_cache_size is of type int, which makes no sense as we
will never have a valid cache size equal or less than 0. So instead of
initializing this variable to -1, it can perfectly be initialized to 0
and use it as an unsigned variable instead.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Addresses-Coverity-ID: 1464429
Link: http://lkml.kernel.org/r/20180213192208.GA26414@embeddedor.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-22 15:44:59 +01:00
..
amd.c x86/microcode/AMD: Add support for fam17h microcode loading 2018-01-10 09:27:12 +01:00
core.c x86/microcode: Do the family check first 2018-02-16 20:09:39 +01:00
intel.c x86/cpu: Change type of x86_cache_size variable to unsigned int 2018-02-22 15:44:59 +01:00
intel_lib.c x86/microcode: Remove modularization leftovers 2015-10-21 11:22:12 +02:00
Makefile x86/microcode: Merge the early microcode loader 2015-10-21 11:22:12 +02:00