fs/proc/array.c: delete children_seq_release()
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 6 Feb 2018 23:37:10 +0000 (15:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:43 +0000 (18:32 -0800)
It is 1:1 wrapper around seq_release().

Link: http://lkml.kernel.org/r/20171122171510.GA12161@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/array.c

index d67a72dcb92c47865177c2243231572f040c3cf6..598803576e4c04445b56bb5e7f4ae564c764f7a3 100644 (file)
@@ -736,16 +736,10 @@ static int children_seq_open(struct inode *inode, struct file *file)
        return ret;
 }
 
-int children_seq_release(struct inode *inode, struct file *file)
-{
-       seq_release(inode, file);
-       return 0;
-}
-
 const struct file_operations proc_tid_children_operations = {
        .open    = children_seq_open,
        .read    = seq_read,
        .llseek  = seq_lseek,
-       .release = children_seq_release,
+       .release = seq_release,
 };
 #endif /* CONFIG_PROC_CHILDREN */