Skip to contentSkip to conversation

sh64: kernel: remove useless variable 'regs'

PATCH New Chen Gang 1 participant 1 message Jul 30, 2013 SuperH

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 2/2 sh64: kernel: remove useless variable 'regs'

remvoe useless variable 'regs' to avoid the related warnings (warning is treated as error).

---
 arch/sh/kernel/process_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/sh/kernel/process_64.c +1 -1
index eac5947..e2062e6 100644
@@ -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 */
Signature · 1 line
1.7.7.6