Skip to content

Commit

Permalink
sparc, exec: remove redundant addr_limit assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mathias Krause authored and David S. Miller committed Sep 21, 2011
1 parent 08cefa9 commit ddd53bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions arch/sparc/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions arch/sparc/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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... */
Expand Down

0 comments on commit ddd53bf

Please sign in to comment.