From: Chen Gang Date: Tue, 12 Nov 2013 23:06:48 +0000 (-0800) Subject: sh64: kernel: remove useless variable 'regs' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d28df813e5077913a60c61aaef2e6bf940d8cd9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git sh64: kernel: remove useless variable 'regs' Remove useless variable 'regs' to avoid the related warnings (warning is treated as error). Signed-off-by: Chen Gang Cc: Paul Mundt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index eac5947ac063..e2062e643341 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c @@ -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 */