lkml.org 
[lkml]   [2013]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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
\
 
 \ /
  Last update: 2013-07-17 04:01    [W:0.029 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site