[PATCH v1 02/12] tools/x86/kcpuid: Remove unused local variable

From: Ahmed S. Darwish
Date: Thu Mar 06 2025 - 15:51:05 EST


The local variable "index" is not used anywhere. Remove it.

Signed-off-by: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>
---
tools/arch/x86/kcpuid/kcpuid.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/tools/arch/x86/kcpuid/kcpuid.c b/tools/arch/x86/kcpuid/kcpuid.c
index abfeecce5aa8..1159204b9902 100644
--- a/tools/arch/x86/kcpuid/kcpuid.c
+++ b/tools/arch/x86/kcpuid/kcpuid.c
@@ -180,10 +180,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)
--
2.48.1