aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ncpfs/mmap.c')
-rw-r--r--fs/ncpfs/mmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ncpfs/mmap.c b/fs/ncpfs/mmap.c
index b359d12eb359..33b873b259a8 100644
--- a/fs/ncpfs/mmap.c
+++ b/fs/ncpfs/mmap.c
@@ -30,9 +30,7 @@
30static int ncp_file_mmap_fault(struct vm_area_struct *area, 30static int ncp_file_mmap_fault(struct vm_area_struct *area,
31 struct vm_fault *vmf) 31 struct vm_fault *vmf)
32{ 32{
33 struct file *file = area->vm_file; 33 struct inode *inode = file_inode(area->vm_file);
34 struct dentry *dentry = file->f_path.dentry;
35 struct inode *inode = dentry->d_inode;
36 char *pg_addr; 34 char *pg_addr;
37 unsigned int already_read; 35 unsigned int already_read;
38 unsigned int count; 36 unsigned int count;