From f973fcabb9ce0ab6bc75d6f53b8aed9261ad4adb Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 19 Jun 2012 12:30:00 +0400 Subject: [PATCH] pipes: Shrink pipe_should_open_transport to want_transport It's static function near the file_desc_ops, no need for a long name. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- pipes.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pipes.c b/pipes.c index e7d0baba9..bb2d5598b 100644 --- a/pipes.c +++ b/pipes.c @@ -239,8 +239,7 @@ static int open_pipe(struct file_desc *d) return tmp; } -static int pipe_should_open_transport(struct fdinfo_entry *fe, - struct file_desc *d) +static int want_transport(struct fdinfo_entry *fe, struct file_desc *d) { struct pipe_info *pi; @@ -251,7 +250,7 @@ static int pipe_should_open_transport(struct fdinfo_entry *fe, static struct file_desc_ops pipe_desc_ops = { .type = FDINFO_PIPE, .open = open_pipe, - .want_transport = pipe_should_open_transport, + .want_transport = want_transport, }; int collect_pipes(void)