SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH 2/2] sh64: kernel: remove useless variable 'regs'
@ 2013-07-30  2:09 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-07-30  2:09 UTC (permalink / raw)
  To: linux-sh

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

Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/sh/kernel/process_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c
index eac5947..e2062e6 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 */
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-30  2:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30  2:09 [PATCH 2/2] sh64: kernel: remove useless variable 'regs' Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox