Commit ddd53bf1 authored by Mathias Krause's avatar Mathias Krause Committed by David S. Miller

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: default avatarMathias Krause <minipli@googlemail.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: default avatarAndrew Morton <akpm@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 08cefa9f
...@@ -380,8 +380,7 @@ void flush_thread(void) ...@@ -380,8 +380,7 @@ void flush_thread(void)
#endif #endif
} }
/* Now, this task is no longer a kernel thread. */ /* This task is no longer a kernel thread. */
current->thread.current_ds = USER_DS;
if (current->thread.flags & SPARC_FLAG_KTHREAD) { if (current->thread.flags & SPARC_FLAG_KTHREAD) {
current->thread.flags &= ~SPARC_FLAG_KTHREAD; current->thread.flags &= ~SPARC_FLAG_KTHREAD;
......
...@@ -368,9 +368,6 @@ void flush_thread(void) ...@@ -368,9 +368,6 @@ void flush_thread(void)
/* Clear FPU register state. */ /* Clear FPU register state. */
t->fpsaved[0] = 0; 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... */ /* It's a bit more tricky when 64-bit tasks are involved... */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment