Commit b93b6ca3 authored by Ingo Molnar's avatar Ingo Molnar Committed by Thomas Gleixner

i386: remove unnecessary code

Oleg Nesterov pointed out that the set_fs() calls in setup_frame()
and setup_rt_frame() were superfluous.

[ tglx: arch/x86 adaptation ]
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent c7537ab2
...@@ -385,7 +385,6 @@ static int setup_frame(int sig, struct k_sigaction *ka, ...@@ -385,7 +385,6 @@ static int setup_frame(int sig, struct k_sigaction *ka,
regs->edx = (unsigned long) 0; regs->edx = (unsigned long) 0;
regs->ecx = (unsigned long) 0; regs->ecx = (unsigned long) 0;
set_fs(USER_DS);
regs->xds = __USER_DS; regs->xds = __USER_DS;
regs->xes = __USER_DS; regs->xes = __USER_DS;
regs->xss = __USER_DS; regs->xss = __USER_DS;
...@@ -479,7 +478,6 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, ...@@ -479,7 +478,6 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
regs->edx = (unsigned long) &frame->info; regs->edx = (unsigned long) &frame->info;
regs->ecx = (unsigned long) &frame->uc; regs->ecx = (unsigned long) &frame->uc;
set_fs(USER_DS);
regs->xds = __USER_DS; regs->xds = __USER_DS;
regs->xes = __USER_DS; regs->xes = __USER_DS;
regs->xss = __USER_DS; regs->xss = __USER_DS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment