Blackfin: exec: remove redundant set_fs(USER_DS)
authorMathias Krause <minipli@googlemail.com>
Fri, 10 Jun 2011 13:09:13 +0000 (15:09 +0200)
committerMike Frysinger <vapier@gentoo.org>
Sat, 23 Jul 2011 05:18:18 +0000 (01:18 -0400)
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>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/process.c

index 6a660fa921b59aba0c22d0ece7747ec5abcf0eca..6a80a9e9fc4aefa8d97f564f6d23ba978a242131 100644 (file)
@@ -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;