diff options
| author | Gustavo A. R. Silva <[email protected]> | 2018-02-13 19:22:08 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-02-15 00:15:53 +0000 |
| commit | 24dbc6000f4b9b0ef5a9daecb161f1907733765a (patch) | |
| tree | 52877d24a97802248319ff3525ea151510e3f529 /arch/x86/platform/atom/punit_atom_debug.c | |
| parent | x86/spectre: Fix an error message (diff) | |
| download | kernel-24dbc6000f4b9b0ef5a9daecb161f1907733765a.tar.gz kernel-24dbc6000f4b9b0ef5a9daecb161f1907733765a.zip | |
x86/cpu: Change type of x86_cache_size variable to unsigned int
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 <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Addresses-Coverity-ID: 1464429
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'arch/x86/platform/atom/punit_atom_debug.c')
0 files changed, 0 insertions, 0 deletions
