alpha, exec: remove redundant set_fs(USER_DS)
authorMathias Krause <minipli@googlemail.com>
Tue, 26 Jul 2011 00:12:39 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:12 +0000 (20:57 -0700)
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>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/kernel/process.c

index 838eac128409e235b33080ca893847ebaa69b827..89bbe5b4114510e07c187000152ba76930aa5ebf 100644 (file)
@@ -200,7 +200,6 @@ show_regs(struct pt_regs *regs)
 void
 start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
 {
-       set_fs(USER_DS);
        regs->pc = pc;
        regs->ps = 8;
        wrusp(sp);