Commit 66d77a12 authored by Linus Torvalds's avatar Linus Torvalds

Simplify the restart system call slightly.

parent a610260d
......@@ -1353,8 +1353,8 @@ EXPORT_SYMBOL(unblock_all_signals);
asmlinkage long sys_restart_syscall(void)
{
struct thread_info *thread = current_thread_info();
return thread->restart_block.fn(&thread->restart_block);
struct restart_block *restart = &current_thread_info()->restart_block;
return restart->fn(restart);
}
long do_no_restart_syscall(struct restart_block *param)
......
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