From: Mathias Krause Date: Tue, 26 Jul 2011 00:12:45 +0000 (-0700) Subject: um, exec: remove redundant set_fs(USER_DS) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0ce5b673457123406f19e616bb8cf20a0c12cb5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git um, 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 Cc: Richard Weinberger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index 09bd7b585726..939a4a67f0fd 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c @@ -38,7 +38,6 @@ void flush_thread(void) void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp) { - set_fs(USER_DS); PT_REGS_IP(regs) = eip; PT_REGS_SP(regs) = esp; }