From: Ahmed S. Darwish Date: Mon, 24 Mar 2025 14:20:27 +0000 (+0100) Subject: tools/x86/kcpuid: Remove unused local variable X-Git-Tag: v6.16-rc1~195^2~29^2~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c061ded035b5bdeb21adc1046c0bfbba4bcee2d2;p=thirdparty%2Flinux.git 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 Signed-off-by: Ingo Molnar Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Josh Poimboeuf Link: https://lore.kernel.org/r/20250324142042.29010-7-darwi@linutronix.de --- diff --git a/tools/arch/x86/kcpuid/kcpuid.c b/tools/arch/x86/kcpuid/kcpuid.c index aa0e03798326d..f1dac5bee515d 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)