diff options
| author | Ahmed S. Darwish <darwi@linutronix.de> | 2025-03-24 15:20:27 +0100 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-03-25 09:53:44 +0100 |
| commit | c061ded035b5bdeb21adc1046c0bfbba4bcee2d2 (patch) | |
| tree | c7c8f2796e0008484987dba307bb6fde051c355d /tools/arch | |
| parent | tools/x86/kcpuid: Print correct CPUID output register names (diff) | |
| download | linux-c061ded035b5bdeb21adc1046c0bfbba4bcee2d2.tar.gz linux-c061ded035b5bdeb21adc1046c0bfbba4bcee2d2.zip | |
tools/x86/kcpuid: Remove unused local variable
The local variable "index" is written to, but is not read from
anywhere. Remove it.
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20250324142042.29010-7-darwi@linutronix.de
Diffstat (limited to 'tools/arch')
| -rw-r--r-- | tools/arch/x86/kcpuid/kcpuid.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/arch/x86/kcpuid/kcpuid.c b/tools/arch/x86/kcpuid/kcpuid.c index aa0e03798326..f1dac5bee515 100644 --- a/tools/arch/x86/kcpuid/kcpuid.c +++ b/tools/arch/x86/kcpuid/kcpuid.c @@ -181,10 +181,6 @@ static void raw_dump_range(struct cpuid_range *range) for (f = 0; (int)f < range->nr; f++) { struct cpuid_func *func = &range->funcs[f]; - u32 index = f; - - if (range->is_ext) - index += 0x80000000; /* Skip leaf without valid items */ if (!func->nr) |
