Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4aee363 authored by Al Viro's avatar Al Viro
Browse files

ia64: dead code in copy_thread() since 2004



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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a8b8f662
Loading
Loading
Loading
Loading
+0 −9
Original line number Original line Diff line number Diff line
@@ -401,15 +401,6 @@ copy_thread(unsigned long clone_flags,
	struct pt_regs *child_ptregs;
	struct pt_regs *child_ptregs;
	int retval = 0;
	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;
	stack = ((struct switch_stack *) regs) - 1;


	child_ptregs = (struct pt_regs *) ((unsigned long) p + IA64_STK_OFFSET) - 1;
	child_ptregs = (struct pt_regs *) ((unsigned long) p + IA64_STK_OFFSET) - 1;