Commit 2d8a1781 authored by Yanchuan Nian's avatar Yanchuan Nian Committed by Linus Torvalds

mm/mmap: remove unnecessary assignment

pgoff is not used after the statement "pgoff = vma->vm_pgoff;", so the
assignment is redundant.
Signed-off-by: default avatarYanchuan Nian <ycnian@gmail.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 146d7009
...@@ -1566,7 +1566,6 @@ unsigned long mmap_region(struct file *file, unsigned long addr, ...@@ -1566,7 +1566,6 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
WARN_ON_ONCE(addr != vma->vm_start); WARN_ON_ONCE(addr != vma->vm_start);
addr = vma->vm_start; addr = vma->vm_start;
pgoff = vma->vm_pgoff;
vm_flags = vma->vm_flags; vm_flags = vma->vm_flags;
} else if (vm_flags & VM_SHARED) { } else if (vm_flags & VM_SHARED) {
error = shmem_zero_setup(vma); error = shmem_zero_setup(vma);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment