Skip to content

Commit

Permalink
powerpc: Remove redundant set_fs(USER_DS)
Browse files Browse the repository at this point in the history
The address limit is already set in flush_old_exec() so this
set_fs(USER_DS) is redundant.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Mathias Krause authored and Benjamin Herrenschmidt committed Jul 19, 2011
1 parent 6471fc6 commit 0e0ebdb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,6 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
unsigned long load_addr = regs->gpr[2]; /* saved by ELF_PLAT_INIT */
#endif

set_fs(USER_DS);

/*
* If we exec out of a kernel thread then thread.regs will not be
* set. Do it now.
Expand Down

0 comments on commit 0e0ebdb

Please sign in to comment.