Skip to content

Commit

Permalink
m32r, exec: remove redundant set_fs(USER_DS)
Browse files Browse the repository at this point in the history
The address limit is already set in flush_old_exec() so this
set_fs(USER_DS) is redundant.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mathias Krause authored and Linus Torvalds committed Jul 26, 2011
1 parent 6fa8090 commit f796062
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/m32r/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ struct thread_struct {

#define start_thread(regs, new_pc, new_spu) \
do { \
set_fs(USER_DS); \
regs->psw = (regs->psw | USERPS_BPSW) & 0x0000FFFFUL; \
regs->bpc = new_pc; \
regs->spu = new_spu; \
Expand Down

0 comments on commit f796062

Please sign in to comment.