Skip to contentSkip to conversation

proc: delete children_seq_release()

PATCH Applied Alexey Dobriyan 2 participants 2 messages Nov 22, 2017 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: delete children_seq_release()

It is 1:1 wrapper around seq_release().

---

 fs/proc/array.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
fs/proc/array.c +1 -7
@@ -733,16 +733,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 */