]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mips: no magic arguments for sysm_pipe()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 24 Dec 2012 01:18:28 +0000 (20:18 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:33:01 +0000 (18:33 -0500)
current_pt_regs() works just fine

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/kernel/syscall.c

index 107307d583eb73d10151ec2d4ef64ae23d5e2788..7e1c70dab76706c33cff8f9d8195a02757cac2c2 100644 (file)
  * 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,