diff options
Diffstat (limited to 'fs/pipe.c')
-rw-r--r-- | fs/pipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -775,7 +775,7 @@ pipe_fasync(int fd, struct file *filp, int on) | |||
775 | return retval; | 775 | return retval; |
776 | } | 776 | } |
777 | 777 | ||
778 | struct pipe_inode_info * alloc_pipe_info(struct inode *inode) | 778 | struct pipe_inode_info *alloc_pipe_info(void) |
779 | { | 779 | { |
780 | struct pipe_inode_info *pipe; | 780 | struct pipe_inode_info *pipe; |
781 | 781 | ||
@@ -841,7 +841,7 @@ static struct inode * get_pipe_inode(void) | |||
841 | 841 | ||
842 | inode->i_ino = get_next_ino(); | 842 | inode->i_ino = get_next_ino(); |
843 | 843 | ||
844 | pipe = alloc_pipe_info(inode); | 844 | pipe = alloc_pipe_info(); |
845 | if (!pipe) | 845 | if (!pipe) |
846 | goto fail_iput; | 846 | goto fail_iput; |
847 | 847 | ||
@@ -1031,7 +1031,7 @@ static int fifo_open(struct inode *inode, struct file *filp) | |||
1031 | spin_unlock(&inode->i_lock); | 1031 | spin_unlock(&inode->i_lock); |
1032 | } else { | 1032 | } else { |
1033 | spin_unlock(&inode->i_lock); | 1033 | spin_unlock(&inode->i_lock); |
1034 | pipe = alloc_pipe_info(inode); | 1034 | pipe = alloc_pipe_info(); |
1035 | if (!pipe) | 1035 | if (!pipe) |
1036 | return -ENOMEM; | 1036 | return -ENOMEM; |
1037 | pipe->files = 1; | 1037 | pipe->files = 1; |