diff --git a/kernel/cpu.c b/kernel/cpu.c
index 8615aa65d9275ab3d9f5216f6844ea251ecae08a..3945066fc01d3f6e615462540e0af09979158a4e 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -197,7 +197,6 @@ struct take_cpu_down_param {
 static int __ref take_cpu_down(void *_param)
 {
 	struct take_cpu_down_param *param = _param;
-	unsigned int cpu = (unsigned long)param->hcpu;
 	int err;
 
 	/* Ensure this CPU doesn't handle any more interrupts. */