From: Mathias Krause Date: Fri, 10 Jun 2011 13:09:13 +0000 (+0200) Subject: Blackfin: exec: remove redundant set_fs(USER_DS) X-Git-Tag: firefly_0821_release~3680^2~4960^2~31 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a64b384818b328aaea02914f8616e07631083f2f;p=firefly-linux-kernel-4.4.55.git Blackfin: 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: Mike Frysinger --- diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 6a660fa921b5..6a80a9e9fc4a 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c @@ -140,7 +140,6 @@ EXPORT_SYMBOL(kernel_thread); */ void start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp) { - set_fs(USER_DS); regs->pc = new_ip; if (current->mm) regs->p5 = current->mm->start_data;