hexagon: kernel: remove useless variables 'dn', 'r' and 'err' in time_init_deferred...
authorChen Gang <gang.chen@asianux.com>
Fri, 1 Nov 2013 11:07:48 +0000 (19:07 +0800)
committerRichard Kuo <rkuo@codeaurora.org>
Fri, 4 Apr 2014 23:19:59 +0000 (18:19 -0500)
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>
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
arch/hexagon/kernel/time.c

index 9903fad997f3e2dc210b85905e832d268df31b5b..d0c4f5a04b7bea1829b0f681bae025dee61d8aa5 100644 (file)
@@ -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;