MIPS: Remove redundant addr_limit assignment on exec.
authorMathias Krause <minipli@googlemail.com>
Fri, 10 Jun 2011 13:10:04 +0000 (15:10 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 25 Jul 2011 16:23:29 +0000 (17:23 +0100)
The address limit is already set in flush_old_exec() via set_fs(USER_DS)
so this assignment is redundant.

[ralf@linux-mips.org: also see dac853ae89043f1b7752875300faf614de43c74b for
further explanation.]

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2466/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/process.c

index d2112d3cf115b85cce3bc1643e61d560673bb338..a8d53e508bb7c2075d1af551dcca4c9c3e002151 100644 (file)
@@ -103,7 +103,6 @@ void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
                __init_dsp();
        regs->cp0_epc = pc;
        regs->regs[29] = sp;
-       current_thread_info()->addr_limit = USER_DS;
 }
 
 void exit_thread(void)