summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo Yu <tsu.yubo@gmail.com>2019-02-08 13:53:43 +0100
committerThomas Gleixner <tglx@linutronix.de>2019-02-08 14:32:33 +0100
commitc81cd5c08d676483bb09f4809660d2a1abea0062 (patch)
treec48277c1924f1786a5016e35be3114638e0b092c
parentx86/boot/compressed/64: Explain paging_prepare()'s return value (diff)
downloadlinux-c81cd5c08d676483bb09f4809660d2a1abea0062.tar.xz
linux-c81cd5c08d676483bb09f4809660d2a1abea0062.zip
x86/mtrr: Remove unused variable
Compiling the kernel with W=1 results in the following warning: arch/x86/kernel/cpu/mtrr/cleanup.c:299:16: warning: variable ‘second_basek’ set but not used [-Wunused-but-set-variable] unsigned long second_basek, second_sizek; Remove the unused variable. [ tglx: Massaged changelog ] Signed-off-by: Bo Yu <tsu.yubo@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: bp@alien8.de Cc: hpa@zytor.com Cc: puwen@hygon.cn Link: https://lkml.kernel.org/r/20190208125343.11451-1-tsu.yubo@gmail.com
-rw-r--r--arch/x86/kernel/cpu/mtrr/cleanup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/cleanup.c b/arch/x86/kernel/cpu/mtrr/cleanup.c
index 3668c5df90c6..5bd011737272 100644
--- a/arch/x86/kernel/cpu/mtrr/cleanup.c
+++ b/arch/x86/kernel/cpu/mtrr/cleanup.c
@@ -296,7 +296,7 @@ range_to_mtrr_with_hole(struct var_mtrr_state *state, unsigned long basek,
unsigned long sizek)
{
unsigned long hole_basek, hole_sizek;
- unsigned long second_basek, second_sizek;
+ unsigned long second_sizek;
unsigned long range0_basek, range0_sizek;
unsigned long range_basek, range_sizek;
unsigned long chunk_sizek;
@@ -304,7 +304,6 @@ range_to_mtrr_with_hole(struct var_mtrr_state *state, unsigned long basek,
hole_basek = 0;
hole_sizek = 0;
- second_basek = 0;
second_sizek = 0;
chunk_sizek = state->chunk_sizek;
gran_sizek = state->gran_sizek;