From: Mathias Krause Date: Fri, 10 Jun 2011 13:09:05 +0000 (+0200) Subject: avr32, exec: remove redundant set_fs(USER_DS) X-Git-Tag: firefly_0821_release~3680^2~5303^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ff71db2f0784cfff38fa7b55908867a24ccc3216;p=firefly-linux-kernel-4.4.55.git avr32, exec: remove redundant set_fs(USER_DS) The address limit is already set in flush_old_exec() so this set_fs(USER_DS) is redundant. Signed-off-by: Mathias Krause Signed-off-by: Hans-Christian Egtvedt --- diff --git a/arch/avr32/include/asm/processor.h b/arch/avr32/include/asm/processor.h index 49a88f5a9d2f..108502bc6770 100644 --- a/arch/avr32/include/asm/processor.h +++ b/arch/avr32/include/asm/processor.h @@ -131,7 +131,6 @@ struct thread_struct { */ #define start_thread(regs, new_pc, new_sp) \ do { \ - set_fs(USER_DS); \ memset(regs, 0, sizeof(*regs)); \ regs->sr = MODE_USER; \ regs->pc = new_pc & ~1; \