* [PATCH] hexagon: kernel: remove useless variables 'dn', 'r' and 'err' in time_init_deferred() in "time.c"
@ 2013-11-01 11:07 Chen Gang
2013-11-04 1:13 ` rkuo
0 siblings, 1 reply; 3+ messages in thread
From: Chen Gang @ 2013-11-01 11:07 UTC (permalink / raw)
To: Richard Kuo; +Cc: linux-hexagon
Remove them, since they are useless. The related warnings (with
allmodconfig for v4):
CC arch/hexagon/kernel/time.o
arch/hexagon/kernel/time.c: In function 'time_init_deferred':
arch/hexagon/kernel/time.c:196: warning: unused variable 'err'
arch/hexagon/kernel/time.c:195: warning: unused variable 'r'
arch/hexagon/kernel/time.c:194: warning: unused variable 'dn'
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
arch/hexagon/kernel/time.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/arch/hexagon/kernel/time.c b/arch/hexagon/kernel/time.c
index 9903fad..d0c4f5a 100644
--- a/arch/hexagon/kernel/time.c
+++ b/arch/hexagon/kernel/time.c
@@ -191,9 +191,6 @@ void __init time_init_deferred(void)
{
struct resource *resource = NULL;
struct clock_event_device *ce_dev = &hexagon_clockevent_dev;
- struct device_node *dn;
- struct resource r;
- int err;
ce_dev->cpumask = cpu_all_mask;
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] hexagon: kernel: remove useless variables 'dn', 'r' and 'err' in time_init_deferred() in "time.c"
2013-11-01 11:07 [PATCH] hexagon: kernel: remove useless variables 'dn', 'r' and 'err' in time_init_deferred() in "time.c" Chen Gang
@ 2013-11-04 1:13 ` rkuo
2013-11-04 1:44 ` Chen Gang
0 siblings, 1 reply; 3+ messages in thread
From: rkuo @ 2013-11-04 1:13 UTC (permalink / raw)
To: Chen Gang; +Cc: linux-hexagon
On Fri, Nov 01, 2013 at 07:07:48PM +0800, Chen Gang wrote:
> Remove them, since they are useless. The related warnings (with
> allmodconfig for v4):
>
> CC arch/hexagon/kernel/time.o
> arch/hexagon/kernel/time.c: In function 'time_init_deferred':
> arch/hexagon/kernel/time.c:196: warning: unused variable 'err'
> arch/hexagon/kernel/time.c:195: warning: unused variable 'r'
> arch/hexagon/kernel/time.c:194: warning: unused variable 'dn'
>
>
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> ---
> arch/hexagon/kernel/time.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
>
Acked-by: Richard Kuo <rkuo@codeaurora.org>
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hexagon: kernel: remove useless variables 'dn', 'r' and 'err' in time_init_deferred() in "time.c"
2013-11-04 1:13 ` rkuo
@ 2013-11-04 1:44 ` Chen Gang
0 siblings, 0 replies; 3+ messages in thread
From: Chen Gang @ 2013-11-04 1:44 UTC (permalink / raw)
To: rkuo; +Cc: linux-hexagon
On 11/04/2013 09:13 AM, rkuo wrote:
> On Fri, Nov 01, 2013 at 07:07:48PM +0800, Chen Gang wrote:
>> Remove them, since they are useless. The related warnings (with
>> allmodconfig for v4):
>>
>> CC arch/hexagon/kernel/time.o
>> arch/hexagon/kernel/time.c: In function 'time_init_deferred':
>> arch/hexagon/kernel/time.c:196: warning: unused variable 'err'
>> arch/hexagon/kernel/time.c:195: warning: unused variable 'r'
>> arch/hexagon/kernel/time.c:194: warning: unused variable 'dn'
>>
>>
>> Signed-off-by: Chen Gang <gang.chen@asianux.com>
>> ---
>> arch/hexagon/kernel/time.c | 3 ---
>> 1 files changed, 0 insertions(+), 3 deletions(-)
>>
>
> Acked-by: Richard Kuo <rkuo@codeaurora.org>
>
Thanks.
--
Chen Gang
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-04 1:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 11:07 [PATCH] hexagon: kernel: remove useless variables 'dn', 'r' and 'err' in time_init_deferred() in "time.c" Chen Gang
2013-11-04 1:13 ` rkuo
2013-11-04 1:44 ` Chen Gang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox