Messages in this thread Patch in this message | | | Date | Wed, 17 Jul 2013 09:14:11 +0800 | From | majianpeng <> | Subject | [PATCH] time: silence warning in tick_nohz_init(). |
| |
Fix those warning message when compile: >kernel/time/tick-sched.c: In function ‘tick_nohz_init’: >kernel/time/tick-sched.c:346:6: warning: unused variable ‘cpu’ [-Wunused-variable]
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com> --- kernel/time/tick-sched.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 6960172..ca1d6e3 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -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.8.3.rc1.44.gb387c77 | |