diff options
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/process_64.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/sys_sparc32.c | 7 |
2 files changed, 0 insertions, 13 deletions
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c index e37512319296..55aa68da213b 100644 --- a/arch/sparc/kernel/process_64.c +++ b/arch/sparc/kernel/process_64.c | |||
@@ -692,12 +692,6 @@ asmlinkage int sparc_execve(struct pt_regs *regs) | |||
692 | (const char __user *const __user *) | 692 | (const char __user *const __user *) |
693 | regs->u_regs[base + UREG_I2], regs); | 693 | regs->u_regs[base + UREG_I2], regs); |
694 | putname(filename); | 694 | putname(filename); |
695 | if (!error) { | ||
696 | fprs_write(0); | ||
697 | current_thread_info()->xfsr[0] = 0; | ||
698 | current_thread_info()->fpsaved[0] = 0; | ||
699 | regs->tstate &= ~TSTATE_PEF; | ||
700 | } | ||
701 | out: | 695 | out: |
702 | return error; | 696 | return error; |
703 | } | 697 | } |
diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c index c3239811a1b5..2f116ff46b11 100644 --- a/arch/sparc/kernel/sys_sparc32.c +++ b/arch/sparc/kernel/sys_sparc32.c | |||
@@ -421,13 +421,6 @@ asmlinkage long sparc32_execve(struct pt_regs *regs) | |||
421 | compat_ptr(regs->u_regs[base + UREG_I2]), regs); | 421 | compat_ptr(regs->u_regs[base + UREG_I2]), regs); |
422 | 422 | ||
423 | putname(filename); | 423 | putname(filename); |
424 | |||
425 | if (!error) { | ||
426 | fprs_write(0); | ||
427 | current_thread_info()->xfsr[0] = 0; | ||
428 | current_thread_info()->fpsaved[0] = 0; | ||
429 | regs->tstate &= ~TSTATE_PEF; | ||
430 | } | ||
431 | out: | 424 | out: |
432 | return error; | 425 | return error; |
433 | } | 426 | } |