summaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2011-09-20 14:22:59 -0700
committerDavid S. Miller <davem@davemloft.net>2011-09-20 23:12:42 -0700
commitddd53bf11172822bc02b32b876a491010257d1b0 (patch)
treebb6085fe06e245bf1bf7aec4c4f93bdaf2a6bee0 /arch/sparc
parent08cefa9fa7e5b3ddaefb8b7bfa408d148429c08d (diff)
downloadlinux-3.10-ddd53bf11172822bc02b32b876a491010257d1b0.tar.gz
linux-3.10-ddd53bf11172822bc02b32b876a491010257d1b0.tar.bz2
linux-3.10-ddd53bf11172822bc02b32b876a491010257d1b0.zip
sparc, exec: remove redundant addr_limit assignment
The address limit is already set in flush_old_exec() so this assignment of USER_DS is redundant. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: David Miller <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/kernel/process_32.c3
-rw-r--r--arch/sparc/kernel/process_64.c3
2 files changed, 1 insertions, 5 deletions
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c
index c8cc461ff75..f793742eec2 100644
--- a/arch/sparc/kernel/process_32.c
+++ b/arch/sparc/kernel/process_32.c
@@ -380,8 +380,7 @@ void flush_thread(void)
#endif
}
- /* Now, this task is no longer a kernel thread. */
- current->thread.current_ds = USER_DS;
+ /* This task is no longer a kernel thread. */
if (current->thread.flags & SPARC_FLAG_KTHREAD) {
current->thread.flags &= ~SPARC_FLAG_KTHREAD;
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
index c158a95ec66..d959cd0a4aa 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
@@ -368,9 +368,6 @@ void flush_thread(void)
/* Clear FPU register state. */
t->fpsaved[0] = 0;
-
- if (get_thread_current_ds() != ASI_AIUS)
- set_fs(USER_DS);
}
/* It's a bit more tricky when 64-bit tasks are involved... */