aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-08-27 14:48:26 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-09-26 21:10:25 -0400
commitcb0942b81249798e15c3f04eee2946ef543e8115 (patch)
tree7d494c580a847342577661782c5173f76178aa81 /fs/proc
parentcecb46f194460d23cacf3b13593f9f5a4f7a0fed (diff)
make get_file() return its argument
simplifies a bunch of callers... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index b55c3bb298e..f1e8438d21b 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1979,8 +1979,7 @@ proc_map_files_readdir(struct file *filp, void *dirent, filldir_t filldir)
1979 if (++pos <= filp->f_pos) 1979 if (++pos <= filp->f_pos)
1980 continue; 1980 continue;
1981 1981
1982 get_file(vma->vm_file); 1982 info.file = get_file(vma->vm_file);
1983 info.file = vma->vm_file;
1984 info.len = snprintf(info.name, 1983 info.len = snprintf(info.name,
1985 sizeof(info.name), "%lx-%lx", 1984 sizeof(info.name), "%lx-%lx",
1986 vma->vm_start, vma->vm_end); 1985 vma->vm_start, vma->vm_end);