]> err.no Git - linux-2.6/commitdiff
m32r: use generic sys_pipe
authorChristoph Hellwig <hch@lst.de>
Fri, 9 May 2008 12:44:02 +0000 (14:44 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 May 2008 15:04:56 +0000 (08:04 -0700)
m32r can use the generic sys_pipe implementation.

The current sys_pipe implementation on m32r only differes from the
generic one by passing a lot of additional unused registers to sys_pipe.

Reviewed and tested by Hirokazu Takata.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m32r/kernel/sys_m32r.c

index 319c79720b8a2ba3860ff35fad5a20b2552210cc..305ac852bbed417dda77de7a9b100c6a401bc75d 100644 (file)
@@ -76,29 +76,6 @@ asmlinkage int sys_tas(int __user *addr)
        return oldval;
 }
 
-/*
- * sys_pipe() is the normal C calling standard for creating
- * a pipe. It's not the way Unix traditionally does this, though.
- */
-asmlinkage int
-sys_pipe(unsigned long r0, unsigned long r1, unsigned long r2,
-       unsigned long r3, unsigned long r4, unsigned long r5,
-       unsigned long r6, struct pt_regs regs)
-{
-       int fd[2];
-       int error;
-
-       error = do_pipe(fd);
-       if (!error) {
-               if (copy_to_user((void __user *)r0, fd, 2*sizeof(int))) {
-                       sys_close(fd[0]);
-                       sys_close(fd[1]);
-                       error = -EFAULT;
-               }
-       }
-       return error;
-}
-
 asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
        unsigned long prot, unsigned long flags,
        unsigned long fd, unsigned long pgoff)