2013-07-16 04:19:01

by Li Zhong

[permalink] [raw]
Subject: [PATCH] nohz: fix compile warning in tick_nohz_init()

cpu is not used after commit 5b8621a68fdcd2baf1d3b413726f913a5254d46a

Signed-off-by: Li Zhong <[email protected]>
---
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 e80183f..8145860 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;


2013-07-16 16:13:19

by Frederic Weisbecker

[permalink] [raw]
Subject: Re: [PATCH] nohz: fix compile warning in tick_nohz_init()

On Tue, Jul 16, 2013 at 12:18:47PM +0800, Li Zhong wrote:
> cpu is not used after commit 5b8621a68fdcd2baf1d3b413726f913a5254d46a
>
> Signed-off-by: Li Zhong <[email protected]>

Applied, thanks!

> ---
> 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 e80183f..8145860 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;
>
>