summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2011-06-10 13:10:48 +0000
committerPaul Mundt <lethal@linux-sh.org>2011-06-14 15:15:58 +0900
commit201fbceb258650157fcc4fd746abcdd3a571eada (patch)
tree1ac5bb6e6e640ea1f584b0701332b5e8c68db614 /arch/sh/kernel
parent9aa7719e0c6a1580451900e672744752804f8f75 (diff)
downloadop-kernel-dev-201fbceb258650157fcc4fd746abcdd3a571eada.zip
op-kernel-dev-201fbceb258650157fcc4fd746abcdd3a571eada.tar.gz
sh, exec: remove redundant set_fs(USER_DS)
The address limit is already set in flush_old_exec() so those calls to set_fs(USER_DS) are redundant. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/process_32.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c
index b473f0c..aaf6d59 100644
--- a/arch/sh/kernel/process_32.c
+++ b/arch/sh/kernel/process_32.c
@@ -102,8 +102,6 @@ EXPORT_SYMBOL(kernel_thread);
void start_thread(struct pt_regs *regs, unsigned long new_pc,
unsigned long new_sp)
{
- set_fs(USER_DS);
-
regs->pr = 0;
regs->sr = SR_FD;
regs->pc = new_pc;
OpenPOWER on IntegriCloud