[PATCH 10/11] microblaze: Remove redundant variable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: monstr
Date: Thursday, April 16, 2009 - 2:56 am

From: Michal Simek <monstr@monstr.eu>

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/kernel/process.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c
index dd15de9..07d4fa3 100644
--- a/arch/microblaze/kernel/process.c
+++ b/arch/microblaze/kernel/process.c
@@ -161,7 +161,6 @@ static void kernel_thread_helper(int (*fn)(void *), void *arg)
 int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
 {
 	struct pt_regs regs;
-	int ret;
 
 	memset(&regs, 0, sizeof(regs));
 	/* store them in non-volatile registers */
@@ -171,10 +170,8 @@ int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
 	regs.pc = (unsigned long)kernel_thread_helper;
 	regs.pt_mode = 1;
 
-	ret = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
+	return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
 			&regs, 0, NULL, NULL);
-
-	return ret;
 }
 
 unsigned long get_wchan(struct task_struct *p)
-- 
1.5.5.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Microblaze fixes for revision, monstr, (Thu Apr 16, 2:56 am)
[PATCH 05/11] microblaze: Move task_pt_regs up, monstr, (Thu Apr 16, 2:56 am)
[PATCH 10/11] microblaze: Remove redundant variable, monstr, (Thu Apr 16, 2:56 am)
RE: [microblaze-uclinux] [PATCH 11/11] microblaze: Kconfig ..., Stephen Neuendorffer, (Fri Apr 17, 10:06 am)
RE: [microblaze-uclinux] [PATCH 11/11] microblaze: Kconfig ..., Stephen Neuendorffer, (Fri Apr 17, 10:21 am)
Re: Microblaze fixes for revision, Andrew Morton, (Mon Apr 20, 1:31 pm)
Re: Microblaze fixes for revision, Michal Simek, (Mon Apr 20, 11:30 pm)