Skip to content

Commit

Permalink
ia64: dead code in copy_thread() since 2004
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Oct 14, 2012
1 parent a8b8f66 commit c4aee36
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions arch/ia64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4aee36

Please sign in to comment.