Skip to contentSkip to conversation

nohz: fix compile warning in tick_nohz_init()

PATCH Applied Li Zhong 2 participants 2 messages Jul 16, 2013 Nohz, dynticks support

lore
Share & tools
lore

Li Zhong

author
#0 lore raw

PATCH 1/1 nohz: fix compile warning in tick_nohz_init()

cpu is not used after commit 5b8621a68fdcd2baf1d3b413726f913a5254d46a

---
 kernel/time/tick-sched.c | 2 --
 1 file changed, 2 deletions(-)
kernel/time/tick-sched.c +0 -2
index e80183f..8145860 100644
@@ -343,8 +343,6 @@ static int tick_nohz_init_all(void)
 
 void __init tick_nohz_init(void)
 {
-	int cpu;
-
 	if (!have_nohz_full_mask) {
 		if (tick_nohz_init_all() < 0)
 			return;
#1 lore raw
Quoted 3 lines · Li Zhong

cpu is not used after commit 5b8621a68fdcd2baf1d3b413726f913a5254d46a

Applied, thanks!

Quoted 19 lines
---
 kernel/time/tick-sched.c | 2 --
 1 file changed, 2 deletions(-)
kernel/time/tick-sched.c +0 -2
index e80183f..8145860 100644
@@ -343,8 +343,6 @@ static int tick_nohz_init_all(void)
 
 void __init tick_nohz_init(void)
 {
-	int cpu;
-
 	if (!have_nohz_full_mask) {
 		if (tick_nohz_init_all() < 0)
 			return;