[PATCH 12/22] ia64: cleanup remove_siblinginfo()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>, David Laight <David.Laight@xxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Joe Perches <joe@xxxxxxxxxxx>, Julia Lawall <Julia.Lawall@xxxxxxxx>, Michał Mirosław <mirq-linux@xxxxxxxxxxxx>, Nicholas Piggin <npiggin@xxxxxxxxx>, Nicolas Palix <nicolas.palix@xxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>, Matti Vaittinen <Matti.Vaittinen@xxxxxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx
- Subject: [PATCH 12/22] ia64: cleanup remove_siblinginfo()
- From: Yury Norov <yury.norov@xxxxxxxxx>
- Date: Tue, 10 May 2022 08:47:40 -0700
- Cc: Yury Norov <yury.norov@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Valentin Schneider <vschneid@xxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx
- In-reply-to: <20220510154750.212913-1-yury.norov@gmail.com>
- References: <20220510154750.212913-1-yury.norov@gmail.com>
remove_siblinginfo() initialises variable 'last', but never uses it.
Drop unneeded code.
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
CC: Valentin Schneider <vschneid@xxxxxxxxxx>
CC: linux-ia64@xxxxxxxxxxxxxxx
CC: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Yury Norov <yury.norov@xxxxxxxxx>
---
arch/ia64/kernel/smpboot.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
index d10f780c13b9..d0e935cf2093 100644
--- a/arch/ia64/kernel/smpboot.c
+++ b/arch/ia64/kernel/smpboot.c
@@ -576,8 +576,6 @@ clear_cpu_sibling_map(int cpu)
static void
remove_siblinginfo(int cpu)
{
- int last = 0;
-
if (cpu_data(cpu)->threads_per_core == 1 &&
cpu_data(cpu)->cores_per_socket == 1) {
cpumask_clear_cpu(cpu, &cpu_core_map[cpu]);
@@ -585,8 +583,6 @@ remove_siblinginfo(int cpu)
return;
}
- last = (cpumask_weight(&cpu_core_map[cpu]) == 1 ? 1 : 0);
-
/* remove it from all sibling map's */
clear_cpu_sibling_map(cpu);
}
--
2.32.0
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]