Skip to contentSkip to conversation

time: silence warning in tick_nohz_init().

PATCH New majianpeng 1 participant 1 message Jul 17, 2013 Nohz, dynticks support

lore
Share & tools
lore

majianpeng

author
#0 lore raw

PATCH 1/1 time: silence warning in tick_nohz_init().

Fix those warning message when compile:

Quoted 2 lines

kernel/time/tick-sched.c: In function ‘tick_nohz_init’:
kernel/time/tick-sched.c:346:6: warning: unused variable ‘cpu’ [-Wunused-variable]

---
 kernel/time/tick-sched.c | 2 --
 1 file changed, 2 deletions(-)
kernel/time/tick-sched.c +0 -2
index 6960172..ca1d6e3 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;
Signature · 2 lines
1.8.3.rc1.44.gb387c77
�翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m����鹅�⒏?朓�