ia64: dead code in copy_thread() since 2004
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 30 Sep 2012 04:23:05 +0000 (00:23 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Oct 2012 23:33:53 +0000 (19:33 -0400)
It used to be called with NULL regs when creating idle threads on
secondaries.  Not used that way since wli had buried that kludge...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/kernel/process.c

index 35e106f2ed13e81a8509d9db0d0285cba10a0e8f..63a77b8b5cfac076bd654922cb8339a68f775a17 100644 (file)
@@ -401,15 +401,6 @@ copy_thread(unsigned long clone_flags,
        struct pt_regs *child_ptregs;
        int retval = 0;
 
-#ifdef CONFIG_SMP
-       /*
-        * For SMP idle threads, fork_by_hand() calls do_fork with
-        * NULL regs.
-        */
-       if (!regs)
-               return 0;
-#endif
-
        stack = ((struct switch_stack *) regs) - 1;
 
        child_ptregs = (struct pt_regs *) ((unsigned long) p + IA64_STK_OFFSET) - 1;
This page took 0.025099 seconds and 5 git commands to generate.