diff options
| -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 @@ | |||
| 46 | * argument. Historically that used to be expensive in Linux. These days | 46 | * argument. Historically that used to be expensive in Linux. These days |
| 47 | * the performance advantage is negligible. | 47 | * the performance advantage is negligible. |
| 48 | */ | 48 | */ |
| 49 | asmlinkage int sysm_pipe(nabi_no_regargs volatile struct pt_regs regs) | 49 | asmlinkage int sysm_pipe(void) |
| 50 | { | 50 | { |
| 51 | int fd[2]; | 51 | int fd[2]; |
| 52 | int error, res; | 52 | int error = do_pipe_flags(fd, 0); |
| 53 | 53 | if (error) | |
| 54 | error = do_pipe_flags(fd, 0); | 54 | return error; |
| 55 | if (error) { | 55 | current_pt_regs()->regs[3] = fd[1]; |
| 56 | res = error; | 56 | return fd[0]; |
| 57 | goto out; | ||
| 58 | } | ||
| 59 | regs.regs[3] = fd[1]; | ||
| 60 | res = fd[0]; | ||
| 61 | out: | ||
| 62 | return res; | ||
| 63 | } | 57 | } |
| 64 | 58 | ||
| 65 | SYSCALL_DEFINE6(mips_mmap, unsigned long, addr, unsigned long, len, | 59 | SYSCALL_DEFINE6(mips_mmap, unsigned long, addr, unsigned long, len, |
