make get_file() return its argument
simplifies a bunch of callers... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1979,8 +1979,7 @@ proc_map_files_readdir(struct file *filp, void *dirent, filldir_t filldir)
|
||||
if (++pos <= filp->f_pos)
|
||||
continue;
|
||||
|
||||
get_file(vma->vm_file);
|
||||
info.file = vma->vm_file;
|
||||
info.file = get_file(vma->vm_file);
|
||||
info.len = snprintf(info.name,
|
||||
sizeof(info.name), "%lx-%lx",
|
||||
vma->vm_start, vma->vm_end);
|
||||
|
Reference in New Issue
Block a user