]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sh64: kernel: remove useless variable 'regs'
authorChen Gang <gang.chen@asianux.com>
Tue, 5 Nov 2013 05:54:47 +0000 (16:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:54:47 +0000 (16:54 +1100)
Remove useless variable 'regs' to avoid the related warnings (warning is
treated as error).

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/sh/kernel/process_64.c

index eac5947ac06313f8e1267912f5704627edc7562e..e2062e643341ccbb744ec9cb9f446bb36850ec8c 100644 (file)
@@ -374,7 +374,7 @@ asmlinkage void ret_from_kernel_thread(void);
 int copy_thread(unsigned long clone_flags, unsigned long usp,
                unsigned long arg, struct task_struct *p)
 {
-       struct pt_regs *childregs, *regs = current_pt_regs();
+       struct pt_regs *childregs;
 
 #ifdef CONFIG_SH_FPU
        /* can't happen for a kernel thread */