diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-24 02:18:28 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-04 00:33:01 +0100 |
commit | 974fdb3c20e72e9c0612bc038c968e420d8f9665 (patch) | |
tree | ac0ed64c55e33ec26843c76ddfab3dc2723bfc60 /arch | |
parent | mips: don't bother with compat_sys_futex() wrappers (diff) | |
download | linux-974fdb3c20e72e9c0612bc038c968e420d8f9665.tar.xz linux-974fdb3c20e72e9c0612bc038c968e420d8f9665.zip |
mips: no magic arguments for sysm_pipe()
current_pt_regs() works just fine
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/syscall.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index 107307d583eb..7e1c70dab767 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c @@ -46,20 +46,14 @@ * argument. Historically that used to be expensive in Linux. These days * the performance advantage is negligible. */ -asmlinkage int sysm_pipe(nabi_no_regargs volatile struct pt_regs regs) +asmlinkage int sysm_pipe(void) { int fd[2]; - int error, res; - - error = do_pipe_flags(fd, 0); - if (error) { - res = error; - goto out; - } - regs.regs[3] = fd[1]; - res = fd[0]; -out: - return res; + int error = do_pipe_flags(fd, 0); + if (error) + return error; + current_pt_regs()->regs[3] = fd[1]; + return fd[0]; } SYSCALL_DEFINE6(mips_mmap, unsigned long, addr, unsigned long, len, |