瀏覽代碼

microblaze: Remove redundant variable

Signed-off-by: Michal Simek <monstr@monstr.eu>
Michal Simek 16 年之前
父節點
當前提交
6714fcc34e
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      arch/microblaze/kernel/process.c

+ 1 - 4
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)