Skip to content

Commit

Permalink
mm/mmap: remove unnecessary assignment
Browse files Browse the repository at this point in the history
pgoff is not used after the statement "pgoff = vma->vm_pgoff;", so the
assignment is redundant.

Signed-off-by: Yanchuan Nian <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
ycnian authored and torvalds committed Sep 11, 2013
1 parent 146d700 commit 2d8a178
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,6 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
WARN_ON_ONCE(addr != vma->vm_start);

addr = vma->vm_start;
pgoff = vma->vm_pgoff;
vm_flags = vma->vm_flags;
} else if (vm_flags & VM_SHARED) {
error = shmem_zero_setup(vma);
Expand Down

0 comments on commit 2d8a178

Please sign in to comment.